Apply Webmention Function
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user