aripbae commited on
Commit
543ab97
·
verified ·
1 Parent(s): 656e4f1

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -115,9 +115,9 @@ app.get(
115
  next()
116
  },
117
  async (req, res) => {
118
- const [cmd = 'w', ...args] = req
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(