mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: index
This commit is contained in:
parent
e898915d01
commit
8edbe54456
@ -99,7 +99,11 @@ export class OB11PassiveHttpAdapter implements IOB11NetworkAdapter {
|
||||
} else if (req.query) {
|
||||
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 action = this.actions.get(actionName);
|
||||
if (action) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user