Upload files to "routes/API"

This commit is contained in:
2026-07-24 15:43:25 +00:00
parent 50a7e49c46
commit 7f97348756
5 changed files with 110 additions and 0 deletions

21
routes/API/Progression.cs Normal file
View File

@@ -0,0 +1,21 @@
using MongoDB.Driver;
using Stella.Models;
namespace Stella.Routes.API
{
public class GetProgression
{
[ServerAPI.GET("/api/players/v1/progression/{accountId}")]
public ProgressionDTO Progression(int accountId)
{
MongoDB.User user = MongoDB.usersCollection.Find(u => u.AccountId == accountId).FirstOrDefault();
return new ProgressionDTO
{
AccountId = accountId,
Level = 1,
XP = 0
};
}
}
}