This commit is contained in:
浪子
2026-05-15 22:40:43 +08:00
parent e2fcf08e2f
commit cba4901058
7 changed files with 205 additions and 9 deletions
+2
View File
@@ -71,6 +71,7 @@ import {
statusContext,
token,
trendsTags,
updateMarkers,
unbookmarkStatus,
unfavouriteStatus,
unfollowAccount,
@@ -203,6 +204,7 @@ async function route(request: Request, env: Env): Promise<Response> {
if (method === "GET" && path === "/api/v1/filters") return filtersV1(request, env);
if (method === "GET" && path === "/api/v1/trends/tags") return trendsTags(env);
if (method === "GET" && path === "/api/v1/markers") return markersList(request, env);
if (method === "POST" && path === "/api/v1/markers") return updateMarkers(request, env);
if (method === "GET" && path === "/api/v1/push/subscription") return getPushSubscription(request, env);
if (method === "POST" && path === "/api/v1/push/subscription") return createPushSubscription(request, env);
if (method === "PUT" && path === "/api/v1/push/subscription") return updatePushSubscription(request, env);