Skip to content

Commit c1fd674

Browse files
committed
refactor: remove /api/config endpoint - now served by nginx
- Delete api/controllers/config.js (unused by frontends) - Remove /config route from swagger.yaml - Delete docs/ENVIRONMENT_CONFIGURATION.md (outdated) - Clean up Helm env vars: remove debugMode, API_PUBLIC_PATH, ENVIRONMENT, BANNER_COLOUR, ANALYTICS_* from values files Config now served by nginx from rproxy-config ConfigMap. eagle-api only needs internal env vars (MongoDB, Minio, CHES, ClamAV).
1 parent dabdfc6 commit c1fd674

File tree

7 files changed

+0
-416
lines changed

7 files changed

+0
-416
lines changed

api/controllers/config.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

api/swagger/swagger.yaml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -691,10 +691,6 @@ definitions:
691691
message:
692692
type: string
693693

694-
### Config Definitions
695-
ConfigObject:
696-
type: object
697-
698694
### Task Definitions
699695
TaskObject:
700696
type: object
@@ -718,38 +714,6 @@ definitions:
718714
- default
719715
### Path Definitions
720716
paths:
721-
/config:
722-
x-swagger-router-controller: config
723-
options:
724-
tags:
725-
- config
726-
summary: 'Pre-flight request'
727-
operationId: protectedOptions
728-
description: 'Options on config Route'
729-
responses:
730-
'200':
731-
description: 'Success'
732-
schema:
733-
$ref: '#/definitions/ConfigObject'
734-
'403':
735-
description: 'Access Denied'
736-
schema:
737-
$ref: '#/definitions/Error'
738-
get:
739-
tags:
740-
- config
741-
summary: 'Get the app configuration'
742-
operationId: publicGetConfig
743-
description: 'Retrieves configuration data.'
744-
responses:
745-
'200':
746-
description: 'Success'
747-
schema:
748-
$ref: '#/definitions/ConfigObject'
749-
'403':
750-
description: 'Access Denied'
751-
schema:
752-
$ref: '#/definitions/Error'
753717
/login/token:
754718
x-swagger-router-controller: login
755719
options:

0 commit comments

Comments
 (0)