Skip to content

Commit

Permalink
Merge branch 'master' of https://gitee.com/oliverkirk/WarpGPT
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverkirk-sudo committed Dec 18, 2023
2 parents b1608f7 + 4b578c0 commit 02d7870
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,8 @@ func main() {
for _, plugin := range plugins {
plugin.Run(component)
}
router.Any("/*path", func(context *gin.Context) {
context.JSON(404, "Not Found")
})
router.Run(env.Env.Host + ":" + strconv.Itoa(env.Env.Port))
}

0 comments on commit 02d7870

Please sign in to comment.