mirror of
https://github.com/cheveguerra/botLeiferAurik-Mod_2.0.git
synced 2026-04-20 12:49:16 +00:00
feat: API
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
const express = require('express');
|
||||
const router = express.Router()
|
||||
const { getQr } = require('../controllers/web')
|
||||
var path = require('path');
|
||||
|
||||
router.use('/qr', getQr)
|
||||
// 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
|
||||
Reference in New Issue
Block a user