summaryrefslogtreecommitdiffstats
path: root/web/handlers.go
Commit message (Collapse)AuthorAgeFilesLines
* Set default ciphers, set tls 1.2 via config, set curve prefs (#9315)Daniel Schalla2018-10-161-0/+4
| | | | | | | | | | | | | | | | | Config Checks at StartUp Part1 Config Checks; Tests for TLS Server HSTS header implementation + tests make gofmt happy with new go version... make gofmt happy with new go version #2... fix logic bug fix typo Fix unnecessary code block
* MM-11241: fix context site url header (#9079)Jesse Hallam2018-07-111-1/+3
| | | | | | | | | * fix context's SiteURLHeader to use the subpath This fixes various commands such as /open and /groupmsg, as well as OAuth related redirects. * MM-11246: also leverage GetSiteHeader() in completeSaml
* MM-11034: Reply properly to incomming webhooks on errors (#9010)Jesús Espino2018-06-261-1/+1
|
* MM-10370: serve subpath (#8968)Jesse Hallam2018-06-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* MM-10863: Handle non-API errors with redirect to webapp (#8943)Jesús Espino2018-06-141-2/+6
| | | | | | * MM-10863: Handle non-API errors with redirect to webapp * Properly shutdown the app in the new test
* MM-10348 Adding experimental hardened mode. (#8881)Christopher Speller2018-06-041-0/+10
| | | | | | * Adding experimental hardened mode. * Sanitizing all 500 errors.
* Adding mlog to context. (#8882)Christopher Speller2018-06-011-2/+10
|
* Refactor context out of API packages (#8755)Joram Wilander2018-05-141-0/+158
* 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