Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
demo-go
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭芳
demo-go
Commits
e1b7b845
Commit
e1b7b845
authored
Feb 23, 2023
by
彭芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor
parent
acd18b50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
web.go
internal/router/web.go
+1
-1
No files found.
internal/router/web.go
View file @
e1b7b845
...
...
@@ -33,7 +33,7 @@ type Web struct {
func
(
p
*
Web
)
RouterInit
(
engine
*
gin
.
Engine
)
{
engine
.
Use
(
p
.
Common
.
SetRequestId
,
p
.
Common
.
PassMethods
)
engine
.
NoRoute
(
func
(
c
*
gin
.
Context
)
{
c
.
JSON
(
http
.
StatusNotFound
,
gin
.
H
{
"code"
:
"404"
,
"message"
:
"Page
No
not found"
})
c
.
JSON
(
http
.
StatusNotFound
,
gin
.
H
{
"code"
:
"404"
,
"message"
:
"Page not found"
})
})
if
gin
.
Mode
()
!=
gin
.
ReleaseMode
{
engine
.
GET
(
"/swagger/*any"
,
ginSwagger
.
WrapHandler
(
swaggerFiles
.
Handler
))
...
...
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