mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 17:29:05 +01:00
Add source code link
This commit is contained in:
parent
bc5c7264c5
commit
f614a32c57
@ -392,6 +392,10 @@ export function genOpenapiSpec(lang = 'ja-JP') {
|
|||||||
const info = {
|
const info = {
|
||||||
summary: endpoint.name,
|
summary: endpoint.name,
|
||||||
description: endpoint.meta.desc ? endpoint.meta.desc[lang] : 'No description provided.',
|
description: endpoint.meta.desc ? endpoint.meta.desc[lang] : 'No description provided.',
|
||||||
|
externalDocs: {
|
||||||
|
description: 'Source code',
|
||||||
|
url: `https://github.com/syuilo/misskey/blob/develop/src/server/api/endpoints/${endpoint.name}.ts`
|
||||||
|
},
|
||||||
...(endpoint.meta.tags ? {
|
...(endpoint.meta.tags ? {
|
||||||
tags: endpoint.meta.tags
|
tags: endpoint.meta.tags
|
||||||
} : {}),
|
} : {}),
|
||||||
|
Loading…
Reference in New Issue
Block a user