- redis-ui.git
- src
- express
- boot.js
This file ( 587B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
const boot = () => {
const express = require('express')
const cors = require('cors')
const bodyParser = require('body-parser');
const app = express()
const port = 7845
app.use(cors())
app.use(bodyParser.json());
app.post('/api/set-language', (req, res) => {
const key = req.body.language
require('../lib/set-language')({
key: key
})
res.send({
status: 'ok'
})
})
app.listen(port, () => console.log(`P3X Redis UI listening at http://localhost:${port}`))
}
module.exports = boot