Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
bom_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8f487d98
authored
Dec 01, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
心跳检查接口
parent
142a5c19
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
server/http/main.go
server/http/main.go
View file @
8f487d98
...
...
@@ -10,6 +10,10 @@ import (
func
InitRouter
()
*
gin
.
Engine
{
gin
.
SetMode
(
configs
.
ApiSetting
.
Mode
)
router
:=
gin
.
Default
()
//测试心跳的路由
router
.
GET
(
"/hbsdata"
,
func
(
context
*
gin
.
Context
)
{
context
.
String
(
200
,
"ok"
)
})
router
.
POST
(
"/bom/export"
,
Export
)
router
.
POST
(
"/bom_matching/refresh"
,
RefreshBomMatchingGoods
)
router
.
POST
(
"/bom_matching/update"
,
UpdateBomMatching
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment