export function staticAssetsAccessControl(this: any, moduleOptions: ModuleOptions) {
this.nuxt.hook('render:setupMiddleware', (app: Server) => {
app.use((req: http.IncomingMessage, res: http.ServerResponse, next: (err?: any) => void) => {
const { pathname } = parseUrl(req.url);
if () {
return options.denyCallback(res);
}
return next();
});
});