```go engine.Static("/", "dist") user := engine.Group("/user") user.POST("/login", handler.Login) user.POST("/reg", handler.Register) user.GET("/sub", handler.Subscribe) ``` ``` panic: path segment '/user/sub' conflicts with existing wildcard '/*filepath' in path '/user/sub' ``` Then ,if I delete all GET method route , it work good. So ,how to use gin with angular2 gracefully? Thank you very much
Activity
[-]Work with angular2,route '*filepath' conflicts[/-][+]Work with Static File,route '*filepath' conflicts[/+]javierprovecho commentedon Aug 2, 2017
engine.Static
is designed for paths like/static
, not a root path combined with other handlers.you should use static middleware, see its example 😃
https://github.com/gin-contrib/static#canonical-example