summaryrefslogtreecommitdiffstats
path: root/web/context.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-10703 Adding blank request context to plugin hooks for future use. (#9043)Christopher Speller2018-07-061-0/+9
| | | | | | | | | | * Adding blank request context to plugin hooks for future use. * Rename RequestContext to Context * Adding context to ServeHTTP and ExecuteCommand * Fixing import cycle in test.
* MM-10370: serve subpath (#8968)Jesse Hallam2018-06-211-1/+3
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* Adding mlog to context. (#8882)Christopher Speller2018-06-011-7/+19
|
* Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-161-4/+8
|\
| * Merge remote-tracking branch 'origin/release-4.10' into merge410rc5Derrick Anderson2018-05-151-4/+8
| |
* | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-151-0/+11
|/
* Refactor context out of API packages (#8755)Joram Wilander2018-05-141-0/+499
* Refactor context out of API packages * Update function names per feedback * Move webhook handlers to web and fix web tests * Move more webhook tests out of api package * Fix static handler