UNPKG

sand-static

Version:
15 lines (11 loc) 246 B
"use strict"; class BaseController extends Controller { static before(next) { this.ranBefore = true; if ('denyRoute' === this.actionName) { this.notAuthorized('Denied'); } next(); } } module.exports = BaseController;