implemented delete team <-> namespace relation

This commit is contained in:
konrad 2018-07-18 08:16:15 +02:00 committed by kolaente
parent 249128a46e
commit ebb5b332b6
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
3 changed files with 31 additions and 1 deletions

View file

@ -118,7 +118,7 @@ func RegisterRoutes(e *echo.Echo) {
}
a.GET("/namespaces/:id/teams", namespaceTeamHandler.ReadAllWeb)
a.PUT("/namespaces/:id/teams", namespaceTeamHandler.CreateWeb)
a.DELETE("/namespaces/:nid/teams/:id", namespaceTeamHandler.DeleteWeb)
a.DELETE("/namespaces/:nid/teams/:teamid", namespaceTeamHandler.DeleteWeb)
teamHandler := &crud.WebHandler{
CObject: &models.Team{},