Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = (function() {
'use strict';
const Nodal = require('nodal');
/* Import Initializers */
const StaticAssetInitializer = Nodal.require('initializers/static_asset_initializer.js');
/* Import Middleware */
const CORSMiddleware = Nodal.require('middleware/cors_middleware.js');
/* Import Renderware */
const GzipRenderware = Nodal.require('renderware/gzip_renderware.js');
/* Import Router */
const router = Nodal.require('app/router.js');
/* Import Database */
// const db = Nodal.require('db/main.js');
/* Import Scheduler */
// const scheduler = Nodal.require('schedulers/main.js');
class App extends Nodal.Application {
__setup__() {
/* Initializers */
'use strict';
const Nodal = require('nodal');
/* Import Initializers */
const StaticAssetInitializer = Nodal.require('initializers/static_asset_initializer.js');
/* Import Middleware */
const CORSMiddleware = Nodal.require('middleware/cors_middleware.js');
/* Import Renderware */
const GzipRenderware = Nodal.require('renderware/gzip_renderware.js');
/* Import Router */
const router = Nodal.require('app/router.js');
/* Import Database */
// const db = Nodal.require('db/main.js');
/* Import Scheduler */
// const scheduler = Nodal.require('schedulers/main.js');
class App extends Nodal.Application {
__setup__() {
/* Initializers */
this.initializers.use(StaticAssetInitializer);
/* Middleware */
'use strict';
const Nodal = require('nodal');
const router = new Nodal.Router();
/* Middleware */
/* executed *before* Controller-specific middleware */
const CORSMiddleware = Nodal.require('middleware/cors_middleware.js');
// const CORSAuthorizationMiddleware = Nodal.require('middleware/cors_authorization_middleware.js');
// const ForceWWWMiddleware = Nodal.require('middleware/force_www_middleware.js');
// const ForceHTTPSMiddleware = Nodal.require('middleware/force_https_middleware.js');
router.middleware.use(CORSMiddleware);
// router.middleware.use(CORSAuthorizationMiddleware);
// router.middleware.use(ForceWWWMiddleware);
// router.middleware.use(ForceHTTPSMiddleware);
/* Renderware */
/* executed *after* Controller-specific renderware */
const GzipRenderware = Nodal.require('renderware/gzip_renderware.js')
router.renderware.use(GzipRenderware);
module.exports = (function() {
'use strict';
const Nodal = require('nodal');
/* Import Initializers */
const StaticAssetInitializer = Nodal.require('initializers/static_asset_initializer.js');
/* Import Middleware */
const CORSMiddleware = Nodal.require('middleware/cors_middleware.js');
/* Import Renderware */
const GzipRenderware = Nodal.require('renderware/gzip_renderware.js');
/* Import Router */
const router = Nodal.require('app/router.js');
/* Import Database */
// const db = Nodal.require('db/main.js');
/* Import Scheduler */
// const scheduler = Nodal.require('schedulers/main.js');
class App extends Nodal.Application {
router.middleware.use(CORSMiddleware);
// router.middleware.use(CORSAuthorizationMiddleware);
// router.middleware.use(ForceWWWMiddleware);
// router.middleware.use(ForceHTTPSMiddleware);
/* Renderware */
/* executed *after* Controller-specific renderware */
const GzipRenderware = Nodal.require('renderware/gzip_renderware.js')
router.renderware.use(GzipRenderware);
/* Routes */
const IndexController = Nodal.require('app/controllers/index_controller.js');
/* generator: begin imports */
/* generator: end imports */
router.route('/').use(IndexController);
/* generator: begin routes */
/* generator: end routes */
module.exports = router;
/* executed *before* Controller-specific middleware */
const CORSMiddleware = Nodal.require('middleware/cors_middleware.js');
// const CORSAuthorizationMiddleware = Nodal.require('middleware/cors_authorization_middleware.js');
// const ForceWWWMiddleware = Nodal.require('middleware/force_www_middleware.js');
// const ForceHTTPSMiddleware = Nodal.require('middleware/force_https_middleware.js');
router.middleware.use(CORSMiddleware);
// router.middleware.use(CORSAuthorizationMiddleware);
// router.middleware.use(ForceWWWMiddleware);
// router.middleware.use(ForceHTTPSMiddleware);
/* Renderware */
/* executed *after* Controller-specific renderware */
const GzipRenderware = Nodal.require('renderware/gzip_renderware.js')
router.renderware.use(GzipRenderware);
/* Routes */
const IndexController = Nodal.require('app/controllers/index_controller.js');
/* generator: begin imports */
/* generator: end imports */
router.route('/').use(IndexController);
/* generator: begin routes */
'use strict';
const Nodal = require('nodal');
const scheduler = new Nodal.Scheduler();
/* generator: begin imports */
const DummyTask = Nodal.require('tasks/dummy_task.js');
/* generator: end imports */
/* generator: begin tasks */
scheduler.minutely(30).perform(DummyTask);
/* generator: end tasks */
module.exports = scheduler;
module.exports = (function() {
'use strict';
const Nodal = require('nodal');
/* Import Initializers */
const StaticAssetInitializer = Nodal.require('initializers/static_asset_initializer.js');
/* Import Middleware */
const CORSMiddleware = Nodal.require('middleware/cors_middleware.js');
/* Import Renderware */
const GzipRenderware = Nodal.require('renderware/gzip_renderware.js');
/* Import Router */
const router = Nodal.require('app/router.js');
/* Import Database */
// const db = Nodal.require('db/main.js');
/* Import Scheduler */
// const scheduler = Nodal.require('schedulers/main.js');
'use strict';
const Nodal = require('nodal');
const router = new Nodal.Router();
/* Middleware */
/* executed *before* Controller-specific middleware */
const CORSMiddleware = Nodal.require('middleware/cors_middleware.js');
// const CORSAuthorizationMiddleware = Nodal.require('middleware/cors_authorization_middleware.js');
// const ForceWWWMiddleware = Nodal.require('middleware/force_www_middleware.js');
// const ForceHTTPSMiddleware = Nodal.require('middleware/force_https_middleware.js');
router.middleware.use(CORSMiddleware);
// router.middleware.use(CORSAuthorizationMiddleware);
// router.middleware.use(ForceWWWMiddleware);
// router.middleware.use(ForceHTTPSMiddleware);
/* Renderware */
/* executed *after* Controller-specific renderware */
'use strict';
const Nodal = require('nodal');
const scheduler = new Nodal.Scheduler();
/* generator: begin imports */
const DummyTask = Nodal.require('tasks/dummy_task.js');
/* generator: end imports */
/* generator: begin tasks */
scheduler.minutely(30).perform(DummyTask);
/* generator: end tasks */
module.exports = scheduler;