repos / neovimcraft

website that makes it easy to find neovim plugins
git clone https://github.com/neurosnap/neovimcraft.git

neovimcraft / src
Eric Bower · 16 Aug 23

dev.ts

 1import { Application } from "./deps.ts";
 2
 3const app = new Application();
 4
 5app.use(async (context, next) => {
 6  try {
 7    await context.send({
 8      root: `${Deno.cwd()}/public`,
 9      index: "index.html",
10    });
11  } catch {
12    await next();
13  }
14});
15
16await app.listen({ port: 8080 });