1
0
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:
Daniel Barber 2019-11-11 09:40:48 -05:00
parent 51f0030821
commit e693b2afb7

View File

@ -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