Show OG metadata for bookmarks

This commit is contained in:
2023-02-11 14:49:36 +11:00
parent f704340577
commit b05ead7328
10 changed files with 78 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ module Adamantium
class App < Hanami::App
config.actions.content_security_policy[:script_src] += " https://gist.github.com"
config.actions.content_security_policy[:script_src] += " *.dnitza.com"
config.actions.content_security_policy[:script_src] += " https://unpkg.com/htmx.org@1.8.4"
config.actions.content_security_policy[:connect_src] += " https://stats.dnitza.com/api/event"
config.logger.level = :debug

View File

@@ -12,6 +12,6 @@ on_worker_boot do
Hanami.shutdown
end
pidfile ENV.fetch("PIDFILE") { "tmp/pids/puma.pid" }
pidfile ENV.fetch("PIDFILE", "tmp/pids/puma.pid")
preload_app!

View File

@@ -20,6 +20,7 @@ module Adamantium
get "/posts", to: "posts.index"
get "/bookmarks", to: "bookmarks.index"
get "/bookmarks/metadata/:id", to: "bookmarks.metadata"
get "/bookmark/:slug", to: "bookmarks.show"
get "/tagged/:slug", to: "tags.show"