fix long pooling redirects
This commit is contained in:
parent
afe520f631
commit
df479f79be
5
main.go
5
main.go
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user