mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
DRY swagger-ui config with relative path
This commit is contained in:
@@ -9,8 +9,8 @@ Rswag::Ui.configure do |config|
|
||||
# (under swagger_root) as JSON or YAML endpoints, then the list below should
|
||||
# correspond to the relative paths for those endpoints.
|
||||
|
||||
config.swagger_endpoint '/api-docs/v1/swagger.yaml', 'API V1 Docs'
|
||||
config.swagger_endpoint '/api-docs/dfc-v1.7/swagger.yaml', 'OFN DFC API Docs'
|
||||
config.swagger_endpoint 'v1/swagger.yaml', 'API V1 Docs'
|
||||
config.swagger_endpoint 'dfc-v1.7/swagger.yaml', 'OFN DFC API Docs'
|
||||
|
||||
# Add Basic Auth in case your API is private
|
||||
# config.basic_auth_enabled = true
|
||||
|
||||
Reference in New Issue
Block a user