allowGetがtrueな項目はget用の記載も作成
This commit is contained in:
parent
819f2a296c
commit
a9cb82efd8
|
|
@ -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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue