diff --git a/src/app.ts b/src/app.ts index fb36c4a9..8ab60609 100644 --- a/src/app.ts +++ b/src/app.ts @@ -101,7 +101,6 @@ export class DanetApplication { } useStaticAssets(path: string) { - console.log(path); this.app.use('*', (context, next: () => Promise) => { const root = path; return (serveStatic({ root })(context, next)); diff --git a/src/utils/serve-static.ts b/src/utils/serve-static.ts index f88d2239..ca1e282d 100644 --- a/src/utils/serve-static.ts +++ b/src/utils/serve-static.ts @@ -29,8 +29,10 @@ export const serveStatic = (options: ServeStaticOptions = { root: '' }) => { if (!path) return await next(); - path = `/${path}`; - + if (Deno.build.os !== "windows") { + path = `/${path}`; + } + let file; try {