diff options
| -rw-r--r-- | src/weepinbell/handler.clj | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/weepinbell/handler.clj b/src/weepinbell/handler.clj index 33f8d74..44c9931 100644 --- a/src/weepinbell/handler.clj +++ b/src/weepinbell/handler.clj @@ -13,12 +13,16 @@ (process-webmention wmc) (defroutes api-routes + ;; receiver endpoint (POST (get-config :endpoint) [source target] (receive {:s source :t target} wmc)) + ;; query webmentions (GET "/api/mentions" [filter] (retrieve filter)) (GET "/api/mention/:id" [id] (retrieve-by-id id)) (GET "/api/mention" [source target] (retrieve-by-url source target)) + ;; host proxied avatars (microformats photos) (route/files "/avatars/" {:root "data/avatars"}) + ;; 404 (route/not-found "Not Found")) (def app |
