summaryrefslogtreecommitdiffstats
path: root/utils/subpath.go
Commit message (Collapse)AuthorAgeFilesLines
* subpath: rewrite manifest.json too (#9017)Jesse Hallam2018-06-291-5/+5
|
* MM-10370: serve subpath (#8968)Jesse Hallam2018-06-211-0/+148
* factor out GetSubpathFromConfig * mv web/subpath.go to utils/subpath.go * serve up web, api and ws on /subpath if configured * pass config to utils.RenderWeb(App)?Error This allows the methods to extract the configured subpath and redirect to the appropriate `/subpath/error` handler. * ensure GetSubpathFromConfig returns trailing slashes deterministically * fix error 404 handling * redirect /subpath to /subpath/ This is necessary for the static handler to match, otherwise none of the registered routes find anything. This also makes it no longer necessary to add trailing slashes in the root router.