github-profile-trophy-reiyu.../api/index.ts
2020-08-23 01:22:20 +09:00

8 lines
No EOL
299 B
TypeScript

import { serve } from "./../deps.ts";
import { GithubAPIClient } from './../src/github_api_client.ts';
const client = new GithubAPIClient();
await client.requestUserData("ryo-ma");
const server = serve({ port: 8080 });
for await (const req of server) {
req.respond({ body: "<h1> TEST </h1>"});
}