stash/internal/api/context_keys.go
WithoutPants 222475df82
Plugin assets, external scripts and CSP overrides (#4260)
* Add assets for plugins
* Move plugin javascript and css into separate endpoints
* Allow loading external scripts
* Add csp overrides
* Only include enabled plugins
* Move URLMap to utils
* Use URLMap for assets
* Add documentation
2023-11-19 10:41:16 +11:00

17 lines
283 B
Go

package api
// https://stackoverflow.com/questions/40891345/fix-should-not-use-basic-type-string-as-key-in-context-withvalue-golint
type key int
const (
// galleryKey key = 0
performerKey key = iota + 1
sceneKey
studioKey
movieKey
tagKey
downloadKey
imageKey
pluginKey
)