From 0fdece68c07836a566909d75a7f3836f229334b5 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 17 May 2022 13:29:12 -0600 Subject: Add /v2/assets/ handler, with resizing --- srv/src/cmd/mediocre-blog/main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'srv/src/cmd') 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 -- cgit v1.2.3