Change gist init url to /init (#109)

This commit is contained in:
Thomas Miceli
2023-09-25 18:43:55 +02:00
committed by GitHub
parent 6c450c6f3b
commit 5b278e2e86
7 changed files with 26 additions and 29 deletions

View File

@ -159,7 +159,7 @@ func NewServer(isDev bool) *Server {
return nil
},
}))
e.Use(middleware.Recover())
//e.Use(middleware.Recover())
e.Use(middleware.Secure())
e.Renderer = &Template{
@ -235,7 +235,7 @@ func NewServer(isDev bool) *Server {
}
if config.C.HttpGit {
e.Any("/push/*", gitHttp, gistNewPushSoftInit)
e.Any("/init/*", gitHttp, gistNewPushSoftInit)
}
g1.GET("/all", allGists, checkRequireLogin)