feat: add PATCH request support, expand PATCH /users/@me, serialize enums correctly
This commit is contained in:
parent
d6c9345dba
commit
e95e0a79ff
20 changed files with 427 additions and 48 deletions
|
@ -20,7 +20,7 @@ public class MetaController(DatabaseContext db) : ApiControllerBase
|
|||
);
|
||||
}
|
||||
|
||||
[HttpGet("coffee")]
|
||||
[HttpGet("/api/v2/coffee")]
|
||||
public IActionResult BrewCoffee() => Problem("Sorry, I'm a teapot!", statusCode: StatusCodes.Status418ImATeapot);
|
||||
|
||||
private record MetaResponse(string Version, string Hash, int Members, UserInfo Users);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue