fix: index
This commit is contained in:
1 parent
3254f3fea0
commit
3ed75ac869
1 file changed
+5
-1
@@ -99,7 +99,11 @@ export class OB11PassiveHttpAdapter implements IOB11NetworkAdapter {
|
|||||||
} else if (req.query) {
|
} else if (req.query) {
|
||||||
payload = { ...req.query, ...req.body };
|
payload = { ...req.query, ...req.body };
|
||||||
}
|
}
|
||||||
|
if (req.path === '' || req.path === '/') {
|
||||||
|
const hello = OB11Response.ok({});
|
||||||
|
hello.message = 'NapCat4 Ss Running';
|
||||||
|
return res.json(hello)
|
||||||
|
}
|
||||||
const actionName = req.path.split('/')[1];
|
const actionName = req.path.split('/')[1];
|
||||||
const action = this.actions.get(actionName);
|
const action = this.actions.get(actionName);
|
||||||
if (action) {
|
if (action) {
|
||||||
|
|||||||
Reference in new issue
Block a user