mirror of
https://github.com/cheveguerra/botLeiferAurik-Mod_2.0.git
synced 2026-04-18 11:49:22 +00:00
15 lines
456 B
JavaScript
15 lines
456 B
JavaScript
const express = require('express');
|
|
const router = express.Router()
|
|
const { getQr } = require('../controllers/web')
|
|
var path = require('path');
|
|
|
|
// router.use('/qr', getQr)
|
|
var staticFilesPath0 = path.resolve('./', 'public');
|
|
var staticFilesPath = path.resolve('./', 'public/index.html');
|
|
console.log(staticFilesPath)
|
|
router.use(express.static(staticFilesPath0));
|
|
router.get('/', (req, res) => {
|
|
res.sendFile(staticFilesPath)
|
|
});
|
|
|
|
module.exports = router |