mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-25 17:24:25 +01:00
Use Deno.serve instead of deprecated "serve" from deno_std
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user