Fixed article always 200 return (bruh I should test before pushing xD)
This commit is contained in:
@@ -19,6 +19,8 @@ import (
|
||||
|
||||
func Article(w http.ResponseWriter, r *http.Request) {
|
||||
switch r.Method {
|
||||
case http.MethodGet:
|
||||
articleGet(w, r)
|
||||
case http.MethodPost:
|
||||
articlePost(w, r)
|
||||
case http.MethodDelete:
|
||||
|
||||
Reference in New Issue
Block a user