Skip to content

Commit

Permalink
fix(api): deno.serve and djwt version
Browse files Browse the repository at this point in the history
  • Loading branch information
emrahcom committed Aug 7, 2024
1 parent 96bf711 commit d8448f7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions api/jitok.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
// ----------------------------------------------------------------------------
// jitok.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 { Algorithm } from "https://deno.land/x/[email protected]/algorithm.ts";
import { STATUS_CODE } from "https://deno.land/[email protected]/http/status.ts";
import { Algorithm } from "https://deno.land/x/[email protected]/algorithm.ts";
import {
create,
getNumericDate,
Header,
Payload,
} from "https://deno.land/x/[email protected].1/mod.ts";
} from "https://deno.land/x/[email protected].2/mod.ts";

const HOSTNAME = "0.0.0.0";
const PORT = 9000;
Expand Down Expand Up @@ -305,10 +304,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 d8448f7

Please sign in to comment.