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) {
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user