mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
11 lines
302 B
TypeScript
11 lines
302 B
TypeScript
import { serve } from "https://deno.land/std@0.66.0/http/server.ts";
|
|
import { Card } from "./src/card.ts";
|
|
const s = serve({ port: 8080 });
|
|
for await (const req of s) {
|
|
req.respond(
|
|
{
|
|
body: new Card().render(),
|
|
headers: new Headers({ "Content-Type": "image/svg+xml" }),
|
|
},
|
|
);
|
|
}
|