Add promote / demote user to admin and reintroduce create user dashboard
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 24s

This commit is contained in:
2026-03-10 12:17:07 +00:00
parent c7dbf5b778
commit 78d6c3d4f0
4 changed files with 69 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)