How to use the @plumier/serve-static.ServeStaticMiddleware function in @plumier/serve-static

To help you get started, we’ve selected a few @plumier/serve-static examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github plumier / plumier / packages / swagger / src / index.ts View on Github external
async initialize(app: Readonly, routes: RouteInfo[]): Promise {
        const path = dist.getAbsoluteFSPath()
        const spec = transform(routes)
        app.use(new OpenApiMiddleware(spec, this.opt))
        app.use(new ServeStaticMiddleware({ root: path, rootPath: this.opt.endpoint }))
    }
}

@plumier/serve-static

Serve static file for Plumier

MIT
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis

Popular @plumier/serve-static functions