Visiting invalid URLs and bad APIs causes redirect to error page
Этот коммит содержится в:
@@ -27,6 +27,8 @@ func InitApi() {
|
||||
InitWebhook(r)
|
||||
InitPreference(r)
|
||||
InitLicense(r)
|
||||
// 404 on any api route before web.go has a chance to serve it
|
||||
Srv.Router.Handle("/api/{anything:.*}", http.HandlerFunc(Handle404))
|
||||
|
||||
utils.InitHTML()
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user