add 404 route
This commit is contained in:
parent
6c6c0e9bdb
commit
0bd6a82d33
@ -152,6 +152,10 @@ func (ms *Server) setupRoutes() {
|
||||
r.GET("/get/latest/merps", tollbooth_gin.LimitHandler(limiter), ms.getLatestMerps())
|
||||
r.GET("/get/merps/for/:thing", tollbooth_gin.LimitHandler(limiter), ms.getLatestMerps())
|
||||
|
||||
r.NoRoute(func(c *gin.Context) {
|
||||
c.JSON(404, gin.H{"message": "not found"})
|
||||
})
|
||||
|
||||
ms.gin = r
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user