Add promote / demote user to admin and reintroduce create user dashboard

This commit is contained in:
2026-03-10 12:18:24 +00:00
parent c7dbf5b778
commit cb326ff8bf
5 changed files with 114 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ func main() {
protected.DELETE("/user/:id", store.DeleteUser)
r.GET("/user", store.GetUsers)
protected.POST("/user", store.CreateUser)
protected.PATCH("/user/:id/admin", store.SetUserAdmin)
// AUTH
r.POST("/auth/login", store.Login)