PostsUpdate done

This commit is contained in:
2024-02-21 20:08:02 -06:00
parent 455de5a771
commit 860b1f75fa
2 changed files with 46 additions and 0 deletions

View File

@@ -15,7 +15,9 @@ func main() {
r := gin.Default()
r.POST("/posts", controllers.PostsCreate)
r.PUT("/posts/:id", controllers.PostsUpdate)
r.GET("/posts", controllers.PostsIndex)
r.GET("/posts/:id", controllers.PostsShow)
r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}