summaryrefslogtreecommitdiffci
path: root/main.go
diff options
from:
to:
context:
space:
mode:
authorGravatar SayaAndy <saya.andy@posteo.com> 2025-08-26 23:41:00 +0700
committerGravatar SayaAndy <saya.andy@posteo.com> 2025-08-26 23:41:00 +0700
commitb0ab2ed92870d8c651267db10d68eb695da2ec62 (patch)
tree880b194c4d0953e486be60eca45fd7aac17ee5d8 /main.go
parentbbe41e5b06ab540a38c8c6b4e0cf719ab31b8e55 (diff)
downloadweb-b0ab2ed92870d8c651267db10d68eb695da2ec62.tar.gz
web-b0ab2ed92870d8c651267db10d68eb695da2ec62.zip
feat: like button (only inmem-cache for now)
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index 9f95c04..1853721 100644
--- a/main.go
+++ b/main.go
@@ -88,6 +88,8 @@ func main() {
app.Get("/:lang/blog/:title", router.Lang_Blog_Title(localization, availableLanguages, b2Client, md))
app.Get("/api/v1/tz", router.Api_V1_TZ())
app.Get("/api/v1/blog-search", router.Api_V1_BlogSearch(localization, availableLanguages, b2Client))
+ app.Get("/api/v1/like", router.Api_V1_Like_Get(b2Client))
+ app.Put("/api/v1/like", router.Api_V1_Like_Put(b2Client))
app.Static("/", "./static")