1
0

implemented get all namespaces via interface

This commit is contained in:
konrad
2018-07-11 13:00:00 +02:00
committed by kolaente
parent 5c4fb7ed73
commit 4213f3b08c
6 changed files with 65 additions and 40 deletions

View File

@ -103,7 +103,10 @@ func RegisterRoutes(e *echo.Echo) {
a.DELETE("/items/:id", itemHandler.DeleteWeb)
a.POST("/items/:id", itemHandler.UpdateWeb)
a.GET("/namespaces", apiv1.GetAllNamespacesByCurrentUser)
namespaceHandler := &crud.WebHandler{
CObject: &models.Namespace{},
}
a.GET("/namespaces", namespaceHandler.ReadAllWeb)
a.PUT("/namespaces", apiv1.AddNamespace)
a.GET("/namespaces/:id", apiv1.ShowNamespace)
a.POST("/namespaces/:id", apiv1.UpdateNamespace)