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!"
end
get "/micropub" do
get "/micropub/main" do
json data: {
posts: github.posts
}
end
post "/micropub" do
post "/micropub/main" do
if token.validate(ENV["INDIEAUTH_TOKEN"])
post = Post.new(params)