Update index.js
Browse files
index.js
CHANGED
|
@@ -115,9 +115,9 @@ app.get(
|
|
| 115 |
next()
|
| 116 |
},
|
| 117 |
async (req, res) => {
|
| 118 |
-
const [cmd
|
| 119 |
.query
|
| 120 |
-
.cmd
|
| 121 |
.trim()
|
| 122 |
.split(' ')
|
| 123 |
const file = format(
|
|
|
|
| 115 |
next()
|
| 116 |
},
|
| 117 |
async (req, res) => {
|
| 118 |
+
const [cmd, ...args] = req
|
| 119 |
.query
|
| 120 |
+
.cmd?
|
| 121 |
.trim()
|
| 122 |
.split(' ')
|
| 123 |
const file = format(
|