Fixed article always 200 return (bruh I should test before pushing xD)

This commit is contained in:
2022-02-02 16:22:29 +01:00
parent e0c04dee79
commit aec4f0d78c

View File

@@ -19,6 +19,8 @@ import (
func Article(w http.ResponseWriter, r *http.Request) { func Article(w http.ResponseWriter, r *http.Request) {
switch r.Method { switch r.Method {
case http.MethodGet:
articleGet(w, r)
case http.MethodPost: case http.MethodPost:
articlePost(w, r) articlePost(w, r)
case http.MethodDelete: case http.MethodDelete: