fix long pooling redirects

This commit is contained in:
Sergey Chubaryan 2024-08-17 15:17:50 +03:00
parent afe520f631
commit df479f79be

View File

@ -130,6 +130,8 @@ func main() {
r.Static("/webapp", "./webapp")
r.GET("/pooling", handlers.NewLongPoolingHandler(clientNotifier))
linkGroup := r.Group("/s")
linkGroup.POST("/new", handlers.NewShortlinkCreateHandler(linkService))
linkGroup.GET("/:linkId", handlers.NewShortlinkResolveHandler(linkService))
@ -144,9 +146,6 @@ func main() {
dummyGroup.GET("", handlers.NewDummyHandler())
}
lpGroup := r.Group("/pooling")
lpGroup.GET("/", handlers.NewLongPoolingHandler(clientNotifier))
if args.GetProfilePath() != "" {
pprofFile, err := os.Create(args.GetProfilePath())
if err != nil {