Add /api/auth/{register,login,logout,me} with first-user-is-admin rule
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user