mirror of
https://gitplac.si/aljaxus/upn-qr.git
synced 2025-12-17 04:00:59 +00:00
handle querydata for form template
This commit is contained in:
@@ -13,7 +13,7 @@ app.set('views', path.join(__dirname, 'views'))
|
|||||||
app.set('view engine', 'ejs')
|
app.set('view engine', 'ejs')
|
||||||
|
|
||||||
app.get('/', (req, res) => res.render('index'))
|
app.get('/', (req, res) => res.render('index'))
|
||||||
app.get('/form/:data', (req, res) => res.render('form'))
|
app.get('/form/:querydata?', (req, res) => res.render('form', req.params))
|
||||||
|
|
||||||
app.get('/api/qrcode', async (req, res) => {
|
app.get('/api/qrcode', async (req, res) => {
|
||||||
const errors = []
|
const errors = []
|
||||||
|
|||||||
Reference in New Issue
Block a user