ivpusic / neo

Go Web Framework
http://ivpusic.github.io/neo/
MIT License
420 stars 43 forks source link

How to wildcard "" and "/" for route? #47

Open winds2016 opened 6 years ago

winds2016 commented 6 years ago

Now need two func for route "/login" and "/login/"? such as for "/" app.Get("/", func(ctx neo.Ctx) (int, error) { ... }) i need another func for "": app.Get("", func(ctx neo.Ctx) (int, error) { ... })