summaryrefslogtreecommitdiff
path: root/srv/src/api/api.go
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-17 13:52:18 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-17 13:52:18 -0600
commite742a2d6d5b75bce14a9be688c47c88807cfe94b (patch)
treea87e5e2fa64b88958d22a5ac58ca1b1c1cb85537 /srv/src/api/api.go
parent0fdece68c07836a566909d75a7f3836f229334b5 (diff)
Add BlogURL template function
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