Added endpoint to update a user <-> namespace relation

This commit is contained in:
kolaente 2018-09-19 08:03:39 +02:00
parent 1e993f1e5c
commit 5e8597699d
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
4 changed files with 34 additions and 1 deletions

View file

@ -125,6 +125,7 @@ func RegisterRoutes(e *echo.Echo) {
a.GET("/namespaces/:namespace/users", namespaceUserHandler.ReadAllWeb)
a.PUT("/namespaces/:namespace/users", namespaceUserHandler.CreateWeb)
a.DELETE("/namespaces/:namespace/users/:user", namespaceUserHandler.DeleteWeb)
a.POST("/namespaces/:namespace/users/:user", namespaceUserHandler.UpdateWeb)
teamHandler := &crud.WebHandler{
CObject: &models.Team{},