Skip to content

Commit

Permalink
fix: deno.serve
Browse files Browse the repository at this point in the history
  • Loading branch information
emrahcom committed Aug 7, 2024
1 parent c3dd7b7 commit 6b39019
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sip-dial-plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// sip-dial-plan.ts
// ----------------------------------------------------------------------------
import { HOSTNAME, PORT, TOKEN_ALGORITHM, TOKEN_SECRET } from "./config.ts";
import { serve } from "https://deno.land/[email protected]/http/server.ts";
import { STATUS_CODE } from "https://deno.land/[email protected]/http/status.ts";
import { STATUS_CODE } from "https://deno.land/[email protected]/http/status.ts";
import { verify } from "https://deno.land/x/[email protected]/mod.ts";
import { type Payload } from "https://deno.land/x/[email protected]/mod.ts";

Expand Down Expand Up @@ -134,10 +133,10 @@ async function handler(req: Request): Promise<Response> {

// ----------------------------------------------------------------------------
function main() {
serve(handler, {
Deno.serve({
hostname: HOSTNAME,
port: PORT,
});
}, handler);
}

// ----------------------------------------------------------------------------
Expand Down

0 comments on commit 6b39019

Please sign in to comment.