1
0

implemented create team <-> namespace relation

This commit is contained in:
konrad
2018-07-17 08:44:21 +02:00
committed by kolaente
parent 2e3c10be13
commit 7feb82702d
8 changed files with 80 additions and 17 deletions

View File

@ -113,6 +113,13 @@ func RegisterRoutes(e *echo.Echo) {
a.DELETE("/namespaces/:id", namespaceHandler.DeleteWeb)
a.GET("/namespaces/:id/lists", apiv1.GetListsByNamespaceID)
namespaceTeamHandler := &crud.WebHandler{
CObject: &models.TeamNamespace{},
}
a.GET("/namespaces/:id/teams", namespaceTeamHandler.ReadAllWeb)
a.PUT("/namespaces/:id/teams", namespaceTeamHandler.CreateWeb)
a.DELETE("/namespaces/:nid/teams/:id", namespaceTeamHandler.DeleteWeb)
teamHandler := &crud.WebHandler{
CObject: &models.Team{},
}