chore: update dependencies (#112)
This commit is contained in:
+3
-3
@@ -6,9 +6,9 @@ export {
|
||||
extname,
|
||||
fromFileUrl,
|
||||
toFileUrl,
|
||||
} from "https://deno.land/std@0.108.0/path/mod.ts";
|
||||
export { walk } from "https://deno.land/std@0.108.0/fs/walk.ts";
|
||||
export { listenAndServe } from "https://deno.land/std@0.108.0/http/server.ts";
|
||||
} from "https://deno.land/std@0.128.0/path/mod.ts";
|
||||
export { walk } from "https://deno.land/std@0.128.0/fs/walk.ts";
|
||||
export { serve } from "https://deno.land/std@0.128.0/http/server.ts";
|
||||
|
||||
// -- router --
|
||||
export * as router from "https://crux.land/router@0.0.5";
|
||||
|
||||
+4
-2
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user