removed unused imports
This commit is contained in:
parent
6e8df73bd2
commit
8f34024832
@ -1,7 +1,6 @@
|
|||||||
package routes
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
@ -70,7 +69,7 @@ func (s *Server) listArticles(w http.ResponseWriter, r *http.Request) {
|
|||||||
// @Router /articles/by/page [get]
|
// @Router /articles/by/page [get]
|
||||||
// @Success 200 {object} ArticlesListResults "OK"
|
// @Success 200 {object} ArticlesListResults "OK"
|
||||||
func (s *Server) ListArticlesByPage(w http.ResponseWriter, r *http.Request) {
|
func (s *Server) ListArticlesByPage(w http.ResponseWriter, r *http.Request) {
|
||||||
p := ArticlesListResults {
|
p := ArticlesListResults{
|
||||||
ApiStatusModel: ApiStatusModel{
|
ApiStatusModel: ApiStatusModel{
|
||||||
Message: "OK",
|
Message: "OK",
|
||||||
StatusCode: http.StatusOK,
|
StatusCode: http.StatusOK,
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package routes
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
|
Loading…
Reference in New Issue
Block a user