Files
mattermost/utils
Jesse Hallam dd35ad43ca MM-10370: serve subpath (#8968)
* 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.
2018-06-21 11:31:51 -07:00
..
2018-06-21 11:31:51 -07:00
2018-06-21 11:31:51 -07:00
2017-10-30 11:57:24 -05:00
2017-10-30 11:57:24 -05:00
2017-11-20 12:57:45 -05:00
2018-04-27 12:49:45 -07:00
2017-11-22 10:15:03 -05:00
2018-04-27 12:49:45 -07:00
2018-02-28 12:07:11 -08:00
2018-02-28 12:07:11 -08:00
2018-06-21 11:31:51 -07:00
2017-09-06 23:11:59 -07:00
2018-03-22 09:53:43 -04:00