mirror of
https://github.com/hotomoe/hotomoe
synced 2024-11-24 23:26:17 +09:00
parent
adbeff3a28
commit
4ede367c1e
@ -82,6 +82,7 @@ export class ApiServerService {
|
||||
}>('/' + endpoint.name, (request, reply) => {
|
||||
if (request.method === 'GET' && !endpoint.meta.allowGet) {
|
||||
reply.code(405);
|
||||
reply.send();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -95,6 +96,7 @@ export class ApiServerService {
|
||||
}>('/' + endpoint.name, (request, reply) => {
|
||||
if (request.method === 'GET' && !endpoint.meta.allowGet) {
|
||||
reply.code(405);
|
||||
reply.send();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user