fix silly admin routing nonsense
This commit is contained in:
parent
09c09b6310
commit
a33e6717e0
6 changed files with 57 additions and 58 deletions
|
|
@ -15,8 +15,8 @@ func Handler(app *model.AppState) http.Handler {
|
|||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
mux := http.NewServeMux()
|
||||
|
||||
mux.Handle("/{id}", serveBlogPost(app))
|
||||
mux.Handle("/", serveBlogIndex(app))
|
||||
mux.Handle("/blogs/{id}", serveBlogPost(app))
|
||||
mux.Handle("/blogs/", serveBlogIndex(app))
|
||||
|
||||
mux.ServeHTTP(w, r)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue