chronograf/server
Tim Raymond 24160ed6ef Force prefixing in several locations
The Basepath option should be applied in anything that will be consumed
by the React application. This is because from its perspective, the
proxy sitting between it and the backend wants those prefixes regardless
of what it does with them before handing the request back to the
Chronograf backend. Consequently, there's situations in the backend
where we need to have the `opts.Basepath` or the `basepath` that we
alter when `opts.PrefixRoutes` is set. The `basepath` is strictly for
altering routing decisions made by the backend.

There's subtle places where routes are supplied to the frontend that
need to always have the `opts.Basepath` set as well. Another commit
addressed the "Location" header of Redirects, for example.
2017-05-08 14:40:50 -07:00
..
assets.go Move URLPrefixer setup to mux, add default 2017-01-27 19:14:21 -05:00
auth.go Update oauth2 Authenticator signatures to use extend 2017-04-17 11:49:45 -05:00
auth_test.go Update oauth2 Authenticator signatures to use extend 2017-04-17 11:49:45 -05:00
builders.go Allow InfluxDB and Kapacitor configuration via ENV vars or CLI options (#1129) 2017-03-30 09:48:04 -07:00
builders_test.go Bypass URLPrefixer if http.Flusher is unavailable 2017-04-04 10:33:14 -04:00
cells.go Add initial template CRUD operations 2017-04-20 11:09:56 -05:00
dashboards.go Add more validation checks to dashboard updates 2017-04-20 11:47:31 -05:00
dashboards_test.go Update influxql AST parsing to return full binary exprs (#1380) 2017-05-03 15:57:19 -07:00
databases.go Admin Databases Page no longer breaks if a db is missing an rp (#1179) 2017-04-04 14:42:24 -07:00
databases_test.go Update kapacitors rule's to use AST and kapacitor directly 2017-04-05 20:04:42 -05:00
hsts.go Add HSTS handler to add headers for upcoming TLS support 2017-02-12 18:21:49 -06:00
influx.go Add line-protocol /write endpoint to all data sources 2017-05-03 00:06:40 -05:00
kapacitors.go Fix null queryConfig and add substantial test coverage to kapacitor 2017-05-05 16:14:02 -05:00
layout.go Remove explorations from backend server 2017-02-01 15:09:02 -06:00
layout_test.go Refactor to remove autogenerated code. 2016-10-26 22:10:52 -05:00
logger.go Add HTTP status code to logs 2017-05-08 14:40:50 -07:00
logout.go Fix OAuth when using Basepath 2017-05-08 14:40:50 -07:00
mappings.go Add server error logging 2016-11-19 11:41:06 -06:00
me.go Fix PathEscape work for go 1.7 2017-04-07 15:32:35 -05:00
me_test.go Update user/role responses to return empty arrays 2017-03-10 13:24:48 -06:00
mountable_router.go Fix OAuth when using Basepath 2017-05-08 14:40:50 -07:00
mountable_router_test.go Implement a MountableRouter 2017-04-03 17:06:21 -04:00
mux.go Force prefixing in several locations 2017-05-08 14:40:50 -07:00
path.go Fix PathEscape work for go 1.7 2017-04-07 15:32:35 -05:00
permissions.go Update user/role responses to return empty arrays 2017-03-10 13:24:48 -06:00
permissions_test.go Update user/role responses to return empty arrays 2017-03-10 13:24:48 -06:00
prefixing_redirector.go Add PrefixedRedirect function 2017-05-08 14:40:50 -07:00
proxy.go Use the Host header from the original Kapacitor URL 2017-04-07 08:15:19 -05:00
queries.go Update /queries endpoint to handle templates 2017-04-28 15:12:28 -05:00
queryconfig.go Update rawtext in queryconfig to be null and not omitempty 2017-04-07 17:32:10 -05:00
redoc.go Miscellaneous lint cleanup 2016-12-20 12:59:56 -08:00
roles.go Update roles to check if role already exists 2017-03-10 17:24:52 -06:00
roles_test.go Update roles to check if role already exists 2017-03-10 17:24:52 -06:00
routes.go Fix OAuth when using Basepath 2017-05-08 14:40:50 -07:00
routes_test.go Fix OAuth when using Basepath 2017-05-08 14:40:50 -07:00
server.go Fix OAuth when using Basepath 2017-05-08 14:40:50 -07:00
server_test.go Bypass URLPrefixer if http.Flusher is unavailable 2017-04-04 10:33:14 -04:00
service.go Update kapacitors rule's to use AST and kapacitor directly 2017-04-05 20:04:42 -05:00
sources.go Resolve conflicts 2017-05-05 10:01:26 -07:00
sources_test.go Add line-protocol /write endpoint to all data sources 2017-05-03 00:06:40 -05:00
swagger.go Miscellaneous lint cleanup 2016-12-20 12:59:56 -08:00
swagger.json Add line-protocol /write endpoint to all data sources 2017-05-03 00:06:40 -05:00
templates.go Add measurements and databases to template variables 2017-04-20 14:32:02 -05:00
templates_test.go Add initial template CRUD operations 2017-04-20 11:09:56 -05:00
url_prefixer.go Bypass URLPrefixer if http.Flusher is unavailable 2017-04-04 10:33:14 -04:00
url_prefixer_test.go Bypass URLPrefixer if http.Flusher is unavailable 2017-04-04 10:33:14 -04:00
users.go Update user's roles validation 2017-03-10 18:06:06 -06:00
users_test.go Update user/role responses to return empty arrays 2017-03-10 13:24:48 -06:00
version.go Update to fix go linter issues 2017-03-06 10:11:52 -06:00