You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import { Application, send } from "https://deno.land/x/oak/mod.ts";
|
|
|
|
const app = new Application();
|
|
|
|
app.use(async (context) => {
|
|
await send(context, context.request.url.pathname, {
|
|
root: `${Deno.cwd()}/`,
|
|
});
|
|
});
|
|
|
|
console.log(Deno.cwd())
|
|
|
|
await app.listen({ port: 8000 });
|