Use Deno.serve instead of deprecated "serve" from deno_std
This commit is contained in:
parent
97d2298178
commit
f2a3f285fa
|
@ -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 * as secp from 'npm:@noble/secp256k1@^1.7.1';
|
||||||
export { LRUCache } from 'npm:lru-cache@^10.0.0';
|
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 { 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';
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import 'https://deno.land/std@0.177.0/dotenv/load.ts';
|
import 'https://deno.land/std@0.177.0/dotenv/load.ts';
|
||||||
import { serve } from '@/deps.ts';
|
|
||||||
|
|
||||||
import app from './app.ts';
|
import app from './app.ts';
|
||||||
|
|
||||||
serve(app.fetch);
|
Deno.serve(app.fetch);
|
||||||
|
|
Loading…
Reference in New Issue