From aec4f0d78c1181e8ce8bafbd6f7a10f505c8ae0b Mon Sep 17 00:00:00 2001 From: bytedream Date: Wed, 2 Feb 2022 16:22:29 +0100 Subject: [PATCH] Fixed article always 200 return (bruh I should test before pushing xD) --- api/article.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/article.go b/api/article.go index 571b57e..065b040 100644 --- a/api/article.go +++ b/api/article.go @@ -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: