You've already forked gun-manager-backend
Never gonna let you down
This commit is contained in:
3
main.go
3
main.go
@@ -37,8 +37,11 @@ func main() {
|
||||
|
||||
e.GET("/gun", Guns.Get)
|
||||
e.GET("/gun/:id", Guns.GetById)
|
||||
e.DELETE("/gun/:id", Guns.DeleteById)
|
||||
e.POST("/gun", Guns.Post)
|
||||
e.GET("/gun/photo/:id/:filename", Guns.GetPhoto)
|
||||
e.POST("/gun/photo/:id", Guns.PostPhoto)
|
||||
e.DELETE("/gun/photo/:id", Guns.DeletePhoto)
|
||||
e.GET("/gun/photo/:id/:size/:filename", Guns.GetPhotoResize)
|
||||
|
||||
e.Logger.Fatal(e.Start(":8000"))
|
||||
|
||||
Reference in New Issue
Block a user