mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 12:39:24 +00:00
feat: ⚡ qr code filename
This commit is contained in:
@@ -19,13 +19,15 @@ const serve = require('serve-static')(dir)
|
||||
* Iniciamos Portal WEB para escanear QR
|
||||
* @param {port:3000, publicSite:'http://mistio.com', qrFile:'qr.png', dir:__dirname}
|
||||
*/
|
||||
const start = (
|
||||
{ port, publicSite, qrFile } = {
|
||||
const start = (args) => {
|
||||
const injectArgs = {
|
||||
port: HTTP_PORT,
|
||||
publicSite: PUBLIC_URL,
|
||||
qrFile: QR_FILE,
|
||||
...args,
|
||||
}
|
||||
) => {
|
||||
const { port, publicSite, qrFile } = injectArgs
|
||||
|
||||
polka()
|
||||
.use(serve)
|
||||
.get(qrFile, (_, res) => {
|
||||
|
||||
Reference in New Issue
Block a user