Skip to content

Commit

Permalink
set gin 404 handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jxlwqq committed Nov 1, 2021
1 parent a39f9d6 commit b607224
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func main() {
r := gin.Default()
r.GET("/", TextHandler)
r.GET("/health", HealthHandler)
r.NoRoute(TextHandler)

srv := http.Server{
Addr: *addr,
Expand Down

0 comments on commit b607224

Please sign in to comment.