mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
9 lines
383 B
TypeScript
9 lines
383 B
TypeScript
import { ServerRequest } from "./deps.ts";
|
|
import { GithubAPIClient } from "./src/github_api_client.ts";
|
|
import "https://deno.land/x/dotenv@v0.5.0/load.ts";
|
|
const client = new GithubAPIClient();
|
|
|
|
export default async (req: ServerRequest) => {
|
|
const userInfo = await client.requestUserData("ryo-ma")
|
|
req.respond({ body: `Hello, from Deno v${Deno.version.deno}!` + userInfo });
|
|
};
|