1
0

Added method to show one namespace

This commit is contained in:
kolaente
2018-07-02 09:09:32 +02:00
parent 124e4f4a5b
commit 06cae09f77
6 changed files with 199 additions and 13 deletions

View File

@ -95,8 +95,9 @@ func RegisterRoutes(e *echo.Echo) {
a.GET("/namespaces", apiv1.GetAllNamespacesByCurrentUser)
a.PUT("/namespaces", apiv1.AddNamespace)
a.GET("/namespaces/:id")
a.GET("/namespaces/:id", apiv1.ShowNamespace)
//a.GET("/namespaces/:id/lists") // Gets all lists for that namespace
a.POST("/namespaces/:id", apiv1.UpdateNamespace)
a.PUT("/namespaces/:id")
a.DELETE("/namespaces/:id")
//a.PUT("/namespaces/:id") // Creates a new list in that namespace
// a.DELETE("/namespaces/:id") // Deletes a namespace with all lists
}