mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-22 02:37:42 +00:00
Fix API 404 (#156)
Fix #154 Reviewed-on: https://gitea.com/gitea/docs/pulls/156
This commit is contained in:
@@ -23,8 +23,16 @@ const apiConfig = [
|
|||||||
// Plugin Options for loading OpenAPI files
|
// Plugin Options for loading OpenAPI files
|
||||||
specs: renderApiSSR ? [
|
specs: renderApiSSR ? [
|
||||||
{
|
{
|
||||||
spec: 'static/swagger-latest.json',
|
|
||||||
route: '/api/next/',
|
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/',
|
route: '/api/1.22/',
|
||||||
@@ -41,10 +49,6 @@ const apiConfig = [
|
|||||||
{
|
{
|
||||||
route: '/api/1.19/',
|
route: '/api/1.19/',
|
||||||
spec: 'static/swagger-19.json',
|
spec: 'static/swagger-19.json',
|
||||||
},
|
|
||||||
{
|
|
||||||
route: '/api/',
|
|
||||||
spec: 'static/swagger-22.json',
|
|
||||||
}
|
}
|
||||||
]: [],
|
]: [],
|
||||||
// Theme Options for modifying how redoc renders them
|
// Theme Options for modifying how redoc renders them
|
||||||
|
|||||||
26721
static/swagger-23.json
Normal file
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
Reference in New Issue
Block a user