18 lines
510 B
JavaScript
18 lines
510 B
JavaScript
const {sessionMiddleware, simpleRolesIsAuthorized} = require("blitz")
|
|
|
|
module.exports = {
|
|
middleware: [
|
|
sessionMiddleware({
|
|
isAuthorized: simpleRolesIsAuthorized,
|
|
}),
|
|
],
|
|
/* Uncomment this to customize the webpack config
|
|
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
|
|
// Note: we provide webpack above so you should not `require` it
|
|
// Perform customizations to webpack config
|
|
// Important: return the modified config
|
|
return config
|
|
},
|
|
*/
|
|
}
|