diff options
| author | eltrac <hi@eltr.ac> | 2026-10-08 19:43:08 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-10-08 19:43:08 +0800 |
| commit | c3ef699b2482bff5b741a46bec6f25d37c865a95 (patch) | |
| tree | c8ca82a8ed3a78c2e0d15eb02cf3102bae38cb8b /src | |
| parent | 68f6c2d073a8ec1ed0836656bc0c34545a398a3b (diff) | |
handler, fe: add /api/send as an alias of /endpoint
frontend uses /api/send instead of configurable /endpoint
Diffstat (limited to 'src')
| -rw-r--r-- | src/weepinbell/webserver/handler.clj | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/weepinbell/webserver/handler.clj b/src/weepinbell/webserver/handler.clj index 4a28c90..cb29b23 100644 --- a/src/weepinbell/webserver/handler.clj +++ b/src/weepinbell/webserver/handler.clj @@ -31,6 +31,10 @@ (receive {:s source :t target} wmc config)) ;; query API routes (context "/api" [] + ;; TODO /api/send is temporarily an alias of /endpoint + ;; will be a full webmention sender in the future + (POST "/send" [source target] + (receive {:s source :t target} wmc config)) ;; query webmention list (context "/mentions" [page microformats mftype] (GET "/" [url] |
