feat: initial test static site with Deno backend

This commit is contained in:
2026-04-11 02:35:04 +03:00
commit 5567158bbe
7 changed files with 302 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
// GET /api/time — returns the current server time.
export async function API_get(req: Request): Promise<Response> {
const now = new Date();
return Response.json({
time: now.toISOString(),
unix: Math.floor(now.getTime() / 1000),
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
});
}