윤준석

ADD: router constant value and routing

package router
import "github.com/labstack/echo/v4"
const (
API = "/api/v2"
APIJoongNa = API + "/JoongNa"
APIKeyword = APIJoongNa + "/:keyword"
)
func Init(e *echo.Echo) {
e.GET(APIKeyword, controller.Search)
}
......@@ -3,7 +3,6 @@ package service
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"joongna/config"
......@@ -42,7 +41,6 @@ func GetItemByKeyword(keyword string) ([]model.Item, error) {
ItemUrl: itemUrl,
ExtraInfo: extraInfo,
}
fmt.Println(item)
items = append(items, item)
}
return items, nil
......