summaryrefslogtreecommitdiffstats
path: root/utils/api.go
Commit message (Collapse)AuthorAgeFilesLines
* If no origin header is set for WebSocket, do not fail upgrade (#9287)Joram Wilander2018-08-241-0/+4
|
* MM-10370: serve subpath (#8968)Jesse Hallam2018-06-211-5/+8
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* Add content type to API error response (#8460)Joram Wilander2018-03-141-0/+1
|
* Remove global site url (#8343)Chris2018-02-221-1/+1
| | | | | | | | * remove global site url * missed one * revert mysterious change
* ABC-132: sign error page parameters (#8197)Chris2018-02-071-5/+20
| | | | | | * sign error page parameters * add comments
* ABC-153: don't use http redirects with 4xx/5xx status codes (#8178)Chris2018-02-021-9/+14
| | | | | | * don't use http redirects with 4xx/5xx status codes * minor html syntax fix
* origin checker refactor (#7889)Chris2017-11-221-10/+6
|
* Renaming repoChristopher Speller2017-09-061-1/+1
|
* PLT-7468 Moved more error pages to use predefined error types (#7378)Harrison Healey2017-09-051-10/+2
| | | | | | | | * PLT-7468 Moved more errors to use error types * PLT-7468 Moved 404 error page to use error types * Made helper function for rendering external links on error page
* Tweak WebSocket header-processing (#6929)Chris2017-07-131-1/+9
| | | | | | * fix * consolidate code
* PLT-6393: Fix Websocket CORS header check. (#6335)George Goldberg2017-05-041-1/+1
|
* Implement v4 endpoints for OAuth (#6040)Joram Wilander2017-04-201-0/+28
| | | | | | | | | | | | | | | | | | * Implement POST /oauth/apps endpoint for APIv4 * Implement GET /oauth/apps endpoint for APIv4 * Implement GET /oauth/apps/{app_id} and /oauth/apps/{app_id}/info endpoints for APIv4 * Refactor API version independent oauth endpoints * Implement DELETE /oauth/apps/{app_id} endpoint for APIv4 * Implement /oauth/apps/{app_id}/regen_secret endpoint for APIv4 * Implement GET /user/{user_id}/oauth/apps/authorized endpoint for APIv4 * Implement POST /oauth/deauthorize endpoint
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * PLT-5860 Updated copyright date in about modal * PLT-5860 Updated copyright notice in JSX files * PLT-5860 Updated copyright notice in go files * Fixed misc copyright dates * Fixed component snapshots
* Move WebSocket API to it's own package and add websocket v4 endpoint (#5881)Joram Wilander2017-03-281-0/+24