add new workspaces for users

This commit is contained in:
Adrian Zürcher
2026-02-19 10:49:12 +01:00
parent b726eb42dc
commit 6392877dc1
21 changed files with 744 additions and 80 deletions

View File

@@ -145,6 +145,7 @@ func main() {
auth.GET("/users", accessHandler.GetUser)
auth.GET("/roles", accessHandler.GetRole)
auth.GET("/workspaces", accessHandler.GetWorkspace)
auth.POST("database/open", dbHandler.OpenDatabase)
auth.POST("/members/add", dbHandler.AddNewMember)
@@ -177,6 +178,11 @@ func main() {
auth.POST("/users/new/password", accessHandler.ChangePassword)
auth.POST("/users/delete", accessHandler.DeleteUser)
auth.POST("/workspaces/add", accessHandler.AddWorkspace)
auth.POST("/workspaces/update", accessHandler.UpdateWorkspace)
auth.POST("/workspaces/data", accessHandler.ReadWorkspaceData)
auth.POST("/workspaces/delete", accessHandler.DeleteWorkspace)
api.POST("/login/refresh", accessHandler.Refresh)
// Serve static files
@@ -228,4 +234,8 @@ func main() {
if err := s.ServeHttp(env.HostUrl.GetValue(), env.HostPort.GetUIntValue()); err != nil {
logger.Error("main", "error http server "+err.Error())
}
if err := s.ServeHttp(env.HostUrl.GetValue(), env.HostPort.GetUIntValue()); err != nil {
logger.Error("main", "error http server "+err.Error())
}
}