Refactor micropub specific things out to a slice

This commit is contained in:
2023-11-15 18:55:57 +11:00
parent 730ecb9ea4
commit 5b133363b3
63 changed files with 468 additions and 174 deletions

View File

@@ -9,14 +9,7 @@ module Adamantium
use Hanami::Middleware::BodyParser, [:form, :json]
# use Adamantium::Middleware::ProcessParams
scope "micropub" do
get "/", to: "site.config"
post "/", to: "posts.handle"
post "/media", to: "media.create"
get "/media", to: "media.show"
post "/webmentions", to: "webmentions.create"
end
slice :micropub, at: "/micropub"
get "/", to: "site.home"
get "/post/top_tracks/:slug", to: "posts.top_tracks"