Skip to content

Commit 99a6817

Browse files
feat: update moyu api url
1 parent 1fcbb2c commit 99a6817

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/server.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@ router.post('/', async (request, env) => {
7474
});
7575
}
7676
case MO_COMMAND.name.toLowerCase(): {
77-
const response = await fetch(env.MOYU_URL);
77+
const response = await fetch(env.MOYU_URL, {
78+
"headers": {
79+
"accept": "*/*",
80+
},
81+
"method": "GET"
82+
});
7883
const text = await response.text();
7984
return new JsonResponse({
8085
type: InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE,

0 commit comments

Comments
 (0)