Syndicate to Day One from Admin pages

This commit is contained in:
2023-06-11 14:25:30 +10:00
parent 0776283aae
commit 15cdd40f75
9 changed files with 89 additions and 0 deletions

View File

@@ -17,5 +17,9 @@ module Adamantium
config.logger.level = :debug
config.logger.stream = "log/hanami.log"
config.shared_app_component_keys += [
"syndication.dayone"
]
end
end

View File

@@ -84,6 +84,8 @@ module Adamantium
delete "/posts/:id", to: "posts.delete"
post "/posts/:id/archive", to: "posts.archive"
post "/posts/:id/publish", to: "posts.publish"
get "/posts/:id", to: "posts.show"
post "/posts/:id/syndicate/:target", to: "posts.syndicate"
get "/media", to: "photos.index"