Never gonna let you down

This commit is contained in:
2023-08-07 20:38:50 -04:00
parent ca56ca7b29
commit 04ebe9e855
4 changed files with 166 additions and 8 deletions

View File

@@ -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"))