Files
botLeiferAurik-Mod_2.0/routes/web.js
2023-02-27 09:05:23 -06:00

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