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:
parent
d2850b7d2f
commit
a8ab4a25f9
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user