Apply Webmention Function

This commit is contained in:
2026-08-27 21:15:24 +08:00
parent 0b6ba6efb8
commit 46e7e5339d
12 changed files with 715 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
export function getWebmentionEndpoint(base: string, route: 'get' | 'receive'): string {
const endpoint = new URL(base.endsWith('/') ? base : `${base}/`);
return new URL(route, endpoint).href;
}