comparison pkg/controllers/routes.go @ 441:76a76691a298

Load the configuration of the published services from database. TODO: Use this to do the publishing.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 21 Aug 2018 14:59:36 +0200
parents 1504f8eff12e
children fc37e7072022
comparison
equal deleted inserted replaced
440:3739aa34f838 441:76a76691a298
68 http.MethodGet, http.MethodPost, 68 http.MethodGet, http.MethodPost,
69 http.MethodPut, http.MethodDelete) 69 http.MethodPut, http.MethodDelete)
70 70
71 // Internal proxies. 71 // Internal proxies.
72 internal := &httputil.ReverseProxy{ 72 internal := &httputil.ReverseProxy{
73 Director: proxyDirector(findProxy("internal")), 73 Director: proxyDirector(publishedServices.find),
74 ModifyResponse: proxyModifyResponse("/api/internal/"), 74 ModifyResponse: proxyModifyResponse("/api/internal/"),
75 } 75 }
76 76
77 internalAuth := all( 77 internalAuth := all(
78 middleware.ModifyQuery(internal, middleware.InjectUser)) 78 middleware.ModifyQuery(internal, middleware.InjectUser))