mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
Implement a GetURI to get the full uri of a (named) route
This commit is contained in:
3
iris.go
3
iris.go
@@ -247,6 +247,9 @@ func (s *Iris) PreListen(opt config.Server) *server.Server {
|
||||
func (s *Iris) PostListen() {
|
||||
//if not error opening the server, then:
|
||||
|
||||
// prepare the route actions, these actions needs real server's access because that it's after server's listen
|
||||
s.router.optimizeLookups()
|
||||
|
||||
//set the rest (for Data, Text, JSON, JSONP, XML)
|
||||
s.rest = rest.New(s.config.Render.Rest)
|
||||
// set the templates
|
||||
|
||||
Reference in New Issue
Block a user