Use Deno.serve instead of deprecated "serve" from deno_std

This commit is contained in:
Alex Gleason 2023-08-04 14:11:13 -05:00
parent 97d2298178
commit f2a3f285fa
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 1 additions and 3 deletions

View File

@ -50,4 +50,3 @@ export { generateSeededRsa } from 'https://gitlab.com/soapbox-pub/seeded-rsa/-/r
export * as secp from 'npm:@noble/secp256k1@^1.7.1';
export { LRUCache } from 'npm:lru-cache@^10.0.0';
export { DB as Sqlite } from 'https://deno.land/x/sqlite@v3.7.0/mod.ts';
export { serve } from 'https://deno.land/std@0.177.0/http/server.ts';

View File

@ -1,6 +1,5 @@
import 'https://deno.land/std@0.177.0/dotenv/load.ts';
import { serve } from '@/deps.ts';
import app from './app.ts';
serve(app.fetch);
Deno.serve(app.fetch);