feat: add frontend project to repo

This commit is contained in:
2025-07-23 04:24:47 +00:00
parent 6c3ffbdc81
commit aacba52807
44 changed files with 18490 additions and 143 deletions

View File

@@ -0,0 +1,23 @@
import { ShortenUrlRequest, ShortenUrlResponse } from "./types";
export async function shortenUrlApi(
payload: ShortenUrlRequest
): Promise<ShortenUrlResponse> {
/* TODO
const response = await fetch('https://api.minxa.lol/api/v1/url', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(payload),
});
if (!response.ok) {
throw new Error('Failed to shorten URL');
}
*/
return {
shortCode: 'Ux5vy' // Dummy value return
}
}