1
0
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:
Makis Maropoulos
2016-06-02 19:22:36 +03:00
parent 79e984146e
commit 05b6723b19
5 changed files with 68 additions and 3 deletions

View File

@@ -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