fix: import the server correctly

This commit is contained in:
Andy Burke 2025-08-01 20:12:39 -07:00
parent 3ef936d2d6
commit 680e7a105d
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "@andyburke/serverus", "name": "@andyburke/serverus",
"description": "A flexible HTTP server for mixed content. Throw static files, markdown, Typescript and (hopefully, eventually) more into a directory and serverus can serve it up a bit more like old-school CGI.", "description": "A flexible HTTP server for mixed content. Throw static files, markdown, Typescript and (hopefully, eventually) more into a directory and serverus can serve it up a bit more like old-school CGI.",
"version": "0.11.0", "version": "0.11.1",
"license": "MIT", "license": "MIT",
"exports": { "exports": {
".": "./serverus.ts", ".": "./serverus.ts",

View file

@ -6,7 +6,7 @@
import * as fs from '@std/fs'; import * as fs from '@std/fs';
import * as path from '@std/path'; import * as path from '@std/path';
import * as media_types from '@std/media-types'; import * as media_types from '@std/media-types';
import { SERVER } from '@andyburke/serverus/server'; import { SERVER } from '../server.ts';
let PUT_PATHS_ALLOWED: string[] | undefined = undefined; let PUT_PATHS_ALLOWED: string[] | undefined = undefined;
let DELETE_PATHS_ALLOWED: string[] | undefined = undefined; let DELETE_PATHS_ALLOWED: string[] | undefined = undefined;