Show OG metadata for bookmarks
This commit is contained in:
@@ -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
|
||||
|
@@ -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!
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user