diff options
| author | eltrac <hi@eltr.ac> | 2026-03-16 20:37:30 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-03-16 20:37:30 +0800 |
| commit | 018ba170e2b8938f6670a4f43eaec0293ee03d7b (patch) | |
| tree | afad35a555d8858098c38651c5efd2dbedeec06a | |
| parent | 6b190a50c475852da07e4558a03f9653ef2ddb87 (diff) | |
style: comments
| -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 |
