Live (In a Volcano) community card game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

49 lines
969 B

// welcome.js
// Copyright (C) 2022 DTP Technologies, LLC
// License: Apache-2.0
'use strict';
const DTP_COMPONENT_NAME = 'welcome';
const path = require('path');
const express = require('express');
const captcha = require('svg-captcha');
const { SiteController/*, SiteError */ } = require('../../lib/site-lib');
class HelpController extends SiteController {
constructor (dtp) {
super(dtp, DTP_COMPONENT_NAME);
}
async start ( ) {
const { limiter: limiterService } = this.dtp.services;
const router = express.Router();
this.dtp.app.use(
'/help',
limiterService.create(limiterService.config.help.getHome),
router,
);
router.get('/', this.getHomeView.bind(this));
return router;
}
async getHomeView (req, res) {
res.render('help/index');
}
}
module.exports = {
slug: 'help',
name: 'help',
create: async (dtp) => {
let controller = new HelpController(dtp);
return controller;
},
};