PostsDelete done

This commit is contained in:
2024-02-21 20:27:14 -06:00
parent 860b1f75fa
commit 7ae8d1a6af
2 changed files with 12 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ func main() {
r.PUT("/posts/:id", controllers.PostsUpdate)
r.GET("/posts", controllers.PostsIndex)
r.GET("/posts/:id", controllers.PostsShow)
r.DELETE("/posts/:id", controllers.PostsDelete)
r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}