Add frontend template with dummy data

This commit is contained in:
2025-12-24 12:21:17 +00:00
parent 4107d7a248
commit ca34727c79
13 changed files with 6892 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
export async function shortenLink(longUrl: string): Promise<{
shortUrl: string;
manageUrl: string;
}> {
let randomText = Math.random().toString(36).substring(2, 8);
return {
shortUrl: "https://halflink.example/" + randomText,
manageUrl: "https://halflink.example/" + randomText + "/manage",
}
}