mirror of
https://github.com/danbee/micropub.git
synced 2025-03-04 08:59:13 +00:00
Everything is in lib now
This commit is contained in:
parent
51f0030821
commit
e693b2afb7
20
micropub.rb
20
micropub.rb
@ -1,20 +0,0 @@
|
||||
require "sinatra"
|
||||
require "sinatra/json"
|
||||
|
||||
require "./lib/post"
|
||||
|
||||
post "/micropub" do
|
||||
verify_token
|
||||
|
||||
post = Post.new(params)
|
||||
|
||||
if post.save!
|
||||
status 201
|
||||
else
|
||||
status 400
|
||||
end
|
||||
end
|
||||
|
||||
def verify_token
|
||||
# verify token
|
||||
end
|
||||
Loading…
Reference in New Issue
Block a user