More Stuff

This commit is contained in:
Caleb Gardner
2024-06-17 18:01:37 -05:00
parent fdd8d49055
commit fa9330a959
4 changed files with 89 additions and 3 deletions
+4 -1
View File
@@ -20,8 +20,11 @@ func NewBlogApp(b *backend.Backend, db *mongo.Database, mux *http.ServeMux) *Blo
authCol: db.Collection("author"),
}
// setup mux
mux.HandleFunc("GET /blog/", out.LatestBlogs)
mux.HandleFunc("GET /blog", out.LatestBlogs)
mux.HandleFunc("GET /blog/list", out.BlogList)
mux.HandleFunc("GET /blog/{blogID}", out.Blog)
mux.HandleFunc("POST /blog", out.CreateBlog)
//TODO
return out
}