feat: deployctl is not needed anymore (#45)

Deno Deploy now supports Deno.listen and Deno.serveHttp.
This commit is contained in:
Luca Casonato
2021-07-30 14:09:04 +02:00
committed by GitHub
parent 8d2935aef3
commit 3bce2fb8d3
14 changed files with 42 additions and 39 deletions
+2 -1
View File
@@ -50,7 +50,8 @@ export class ServerContext {
if (path.startsWith("/api/")) {
const handlers = Object.fromEntries(
Object.entries(module as ApiRouteModule).filter(([method]) =>
method === "default" || router.METHODS.includes(method)
method === "default" ||
(router.METHODS as readonly string[]).includes(method)
),
);
const apiRoute: ApiRoute = {