test schema update
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-08 09:54:57 +11:00
parent aba655cd3b
commit 04bf8270bb
4 changed files with 99 additions and 28 deletions

View File

@@ -237,7 +237,6 @@ func main() {
// Register our routes
public := router.Group("/api")
public.POST("/login", controllers.Login)
//public.POST("/unlock", controllers.Unlock)
// API calls that only an administrator can make
adminOnly := router.Group("/api/admin")
@@ -245,11 +244,11 @@ func main() {
adminOnly.POST("/user/delete", controllers.DeleteUser)
adminOnly.POST("/user/register", controllers.RegisterUser) // TODO deprecate
adminOnly.POST("/user/add", controllers.RegisterUser)
// TODO
//adminOnly.POST("/user/update", controllers.UpdateUser)
adminOnly.GET("/roles", controllers.GetRoles)
adminOnly.POST("/role/add", controllers.AddRole)
adminOnly.GET("/users", controllers.GetUsers)
// TODO Make unlock an admin only function
adminOnly.POST("/unlock", controllers.Unlock)
// Get secrets