Add /api/auth/{register,login,logout,me} with first-user-is-admin rule

This commit is contained in:
2026-06-11 18:34:07 +00:00
parent 8a7d01ac9e
commit 2a208e81b2
3 changed files with 116 additions and 0 deletions
+2
View File
@@ -22,6 +22,8 @@ using (var scope = app.Services.CreateScope())
app.UseAuthentication();
app.UseAuthorization();
app.MapAuthEndpoints();
app.MapGet("/health", () => Results.Ok(new { ok = true }));
app.Run();