about summary refs log tree commit diff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorEvan Minto <evan.minto@gmail.com>2017-02-04 14:46:23 -0800
committerEvan Minto <evan.minto@gmail.com>2017-02-04 14:46:23 -0800
commite2fbf8bc7479967baa84ef26eb03e19f0fd868e8 (patch)
tree6fd2a38dbd5dc8dbfb056bba872c89b3d1546f38 /config/routes.rb
parent7b7a356aed20c57d10bd7edfc3c3f5ba3d3a9d8c (diff)
Add an account endpoint for ActivityPub and link to it on HTML profile pages
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 699f56833..f831c4239 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -153,6 +153,12 @@ Rails.application.routes.draw do
       end
     end
 
+    namespace :activitypub do
+      resources :accounts do
+        get '/:id', to: 'accounts#show'
+      end
+    end
+
     namespace :web do
       resource :settings, only: [:update]
     end