Toggle navigation
Toggle navigation
This project
Loading...
Sign in
윤준석
/
mamuri-bot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
윤준석
2022-05-13 23:37:21 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ce6659dfe84a20dfa612a3e39d7d4695af545f31
ce6659df
1 parent
31f26fb1
ADD: router constant value and routing
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
joongna/router/router.go
joongna/service/item.go
joongna/router/router.go
0 → 100644
View file @
ce6659d
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
)
}
joongna/service/item.go
View file @
ce6659d
...
...
@@ -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
...
...
Please
register
or
login
to post a comment