0
0
mirror of https://gitea.com/gitea/docs.git synced 2025-05-22 18:28:37 +00:00

Fix API 404 (#156)

Fix #154

Reviewed-on: https://gitea.com/gitea/docs/pulls/156
This commit is contained in:
Lunny Xiao
2025-01-16 07:01:43 +00:00
parent 56cbea7928
commit b5245578b5
3 changed files with 27865 additions and 89 deletions

@ -23,8 +23,16 @@ const apiConfig = [
// Plugin Options for loading OpenAPI files
specs: renderApiSSR ? [
{
spec: 'static/swagger-latest.json',
route: '/api/next/',
spec: 'static/swagger-latest.json',
},
{
route: '/api/',
spec: 'static/swagger-23.json',
},
{
route: '/api/1.23/',
spec: 'static/swagger-23.json',
},
{
route: '/api/1.22/',
@ -41,10 +49,6 @@ const apiConfig = [
{
route: '/api/1.19/',
spec: 'static/swagger-19.json',
},
{
route: '/api/',
spec: 'static/swagger-22.json',
}
]: [],
// Theme Options for modifying how redoc renders them

26721
static/swagger-23.json Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff