diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2022-05-17 13:29:12 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2022-05-17 13:29:12 -0600 |
commit | 0fdece68c07836a566909d75a7f3836f229334b5 (patch) | |
tree | 65f47e7dc4e8f2bce269054d2d8db978381c4f7d /srv/src/cmd | |
parent | f9d1f664f0a554b58e674f195572cc8a71d0bbfa (diff) |
Add /v2/assets/ handler, with resizing
Diffstat (limited to 'srv/src/cmd')
-rw-r--r-- | srv/src/cmd/mediocre-blog/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/srv/src/cmd/mediocre-blog/main.go b/srv/src/cmd/mediocre-blog/main.go index bdcd1b9..2660ea4 100644 --- a/srv/src/cmd/mediocre-blog/main.go +++ b/srv/src/cmd/mediocre-blog/main.go @@ -120,10 +120,12 @@ func main() { defer postSQLDB.Close() postStore := post.NewStore(postSQLDB) + postAssetStore := post.NewAssetStore(postSQLDB) apiParams.Logger = logger.WithNamespace("api") apiParams.PowManager = powMgr apiParams.PostStore = postStore + apiParams.PostAssetStore = postAssetStore apiParams.MailingList = ml apiParams.GlobalRoom = chatGlobalRoom apiParams.UserIDCalculator = chatUserIDCalc |