chore: update dependencies (#112)

This commit is contained in:
Luca Matei Pintilie
2022-03-06 13:33:18 +01:00
committed by GitHub
parent 72115506b1
commit 623e4b7605
3 changed files with 11 additions and 9 deletions
+4 -2
View File
@@ -1,5 +1,5 @@
import { ServerContext } from "./context.ts";
import { listenAndServe } from "./deps.ts";
import { serve } from "./deps.ts";
import {
AppModule,
ErrorPageModule,
@@ -32,5 +32,7 @@ export { ServerContext };
export async function start(routes: Manifest) {
const ctx = await ServerContext.fromManifest(routes);
console.log("Server listening on http://localhost:8000");
await listenAndServe(":8000", ctx.handler());
await serve(ctx.handler(), {
port: 8000,
});
}