Fixed article get always 404 return
This commit is contained in:
2
main.go
2
main.go
@@ -47,7 +47,7 @@ func setupApi(r *mux.Router) {
|
|||||||
r.HandleFunc("/api/recent", api.Recent).Methods(http.MethodGet)
|
r.HandleFunc("/api/recent", api.Recent).Methods(http.MethodGet)
|
||||||
r.HandleFunc("/api/search", api.Search).Methods(http.MethodGet)
|
r.HandleFunc("/api/search", api.Search).Methods(http.MethodGet)
|
||||||
|
|
||||||
r.HandleFunc("/api/article", api.Article).Methods(http.MethodPost, http.MethodPatch, http.MethodDelete)
|
r.HandleFunc("/api/article", api.Article).Methods(http.MethodGet, http.MethodPost, http.MethodPatch, http.MethodDelete)
|
||||||
|
|
||||||
r.HandleFunc("/api/assets", api.Assets).Methods(http.MethodGet, http.MethodPost, http.MethodDelete)
|
r.HandleFunc("/api/assets", api.Assets).Methods(http.MethodGet, http.MethodPost, http.MethodDelete)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user