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:
@ -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
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