summaryrefslogtreecommitdiff
path: root/srv/src/api/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/api/api.go')
-rw-r--r--srv/src/api/api.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/srv/src/api/api.go b/srv/src/api/api.go
index 37ea1fc..7323d29 100644
--- a/srv/src/api/api.go
+++ b/srv/src/api/api.go
@@ -26,6 +26,10 @@ type Params struct {
Logger *mlog.Logger
PowManager pow.Manager
+ // PathPrefix, if given, will be prefixed to all url paths which are
+ // rendered by the API's templating system.
+ PathPrefix string
+
PostStore post.Store
PostAssetStore post.AssetStore