mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
* ui: Refactor routing functions into Router record * ui: Store base URI in AppConfig * ui: Use basePath in Router functions * backend: Add Web.BasePath config option and update routes * Tweaks to get SPA to bootstrap basePath configured * ui: basePath support for apis/serve * ui: basePath support for message monitor * web: Redirect requests to / when basePath configured * doc: add basepath to config.md * Closes #107
7 lines
133 B
Go
7 lines
133 B
Go
package web
|
|
|
|
type jsonAppConfig struct {
|
|
BasePath string `json:"base-path"`
|
|
MonitorVisible bool `json:"monitor-visible"`
|
|
}
|