add new workspaces for users
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user