Skip to content

Commit

Permalink
fix get-root-items route for depots
Browse files Browse the repository at this point in the history
  • Loading branch information
krustowski committed Aug 12, 2024
1 parent 6be8384 commit 8078d31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/depots/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ import (

// depots CRUD -- functions in controllers.go
func Routes(g *gin.RouterGroup) {
g.GET("/",
g.GET("/items",
GetAllDepotItems)
g.POST("/restore",
PostDumpRestore)

g.GET("/items/types",
ListTypes)
g.POST("/items/:key",
Expand All @@ -23,4 +20,7 @@ func Routes(g *gin.RouterGroup) {
UpdateDepotItemByKey)
g.DELETE("/items/:key",
DeleteDepotItemByKey)

g.POST("/restore",
PostDumpRestore)
}

0 comments on commit 8078d31

Please sign in to comment.