allowGetがtrueな項目はget用の記載も作成

This commit is contained in:
osamu 2023-11-22 14:05:39 +09:00
parent 819f2a296c
commit a9cb82efd8
1 changed files with 1 additions and 0 deletions

View File

@ -205,6 +205,7 @@ export function genOpenapiSpec(config: Config) {
}; };
spec.paths['/' + endpoint.name] = { spec.paths['/' + endpoint.name] = {
...(endpoint.meta.allowGet ? { get: info } : {}),
post: info, post: info,
}; };
} }