1
0
mirror of https://github.com/danbee/micropub.git synced 2025-03-04 08:59:13 +00:00

Match old micropub URL

This commit is contained in:
Daniel Barber 2019-11-11 18:00:26 -05:00
parent d2850b7d2f
commit a8ab4a25f9

View File

@ -17,13 +17,13 @@ module Micropub
"Hello, World!" "Hello, World!"
end end
get "/micropub" do get "/micropub/main" do
json data: { json data: {
posts: github.posts posts: github.posts
} }
end end
post "/micropub" do post "/micropub/main" do
if token.validate(ENV["INDIEAUTH_TOKEN"]) if token.validate(ENV["INDIEAUTH_TOKEN"])
post = Post.new(params) post = Post.new(params)