d30ebacc72
chore: add license headers to all c# files
2024-12-09 21:11:46 +01:00
8bd4449804
refactor(backend): move all request/response types to a new Dto namespace
2024-12-09 13:58:18 +01:00
f8e6032449
chore(backend): add roslynator and fix diagnostics
2024-12-08 15:17:18 +01:00
649988db25
refactor(backend): use explicit types instead of var by default
2024-12-08 15:07:25 +01:00
b47ed7b699
rate limit tweaks
...
the /users/{id} prefix contains most API routes so it's not a good idea
to put a single rate limit on *all* of them combined. the rate limiter
will now ignore the /users/{id} prefix *if* there's a second {id}
parameter in the URL.
also, X-RateLimit-Bucket is no longer hashed, so it can be directly
decoded by clients to get the actual bucket name. i'm not sure if this
will actually be useful, but it's nice to have the option.
2024-12-02 16:13:56 +01:00
7f971e8549
chore: add csharpier to husky, format backend with csharpier
2024-10-02 00:28:07 +02:00
06f7019330
feat(backend): move internal endpoints to /api/internal
2024-10-02 00:15:14 +02:00
42041d49bc
feat: add force log out endpoint
2024-10-01 21:25:51 +02:00
f81ae97821
feat(backend): return unlisted status in partial member for authenticated users
2024-09-25 19:48:09 +02:00
2cef7523d2
chore(backend): silence some more resharper errors
2024-09-14 16:37:52 +02:00
ff22530f0a
feat(frontend): add discord callback page
...
this only handles existing accounts for now, still need to write an action function
2024-09-13 14:56:38 +02:00
4ac0001795
fix: only query user ID in /api/internal/request-data
2024-09-11 16:34:08 +02:00
2682cabfb0
refactor: add DatabaseContext.GetToken method
2024-09-11 16:23:45 +02:00
3d22385689
feat: add rate limiter proxy
2024-09-10 16:53:43 +02:00