diff options
Diffstat (limited to 'server.rb')
-rw-r--r-- | server.rb | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -14,10 +14,11 @@ post '/inbox' do type = @activity['type'].downcase.to_sym p type halt 501 unless respond_to?(type) + # jj @activity @object = @activity['object'] @object = fetch(@object) if @object.is_a?(String) && @object.match(/^http/) halt 400 unless @object - verify! + # verify! unless type == :accept # pixelfed sends unsigned accept activities send(type) end @@ -41,6 +42,10 @@ end end end +get '/pdp8' do + send_file('./public/pdp8') +end + get '/tags/:tag' do |tag| ordered_collection(File.join(TAGS, tag)).to_json end |