File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 7
7
8
8
BASE_URI = os .getenv ("GATEWAY" )
9
9
KRATOS_URI = os .getenv ("KRATOS" )
10
- CONFIG_URI = os .getenv ("CONFIG" )
11
10
12
11
13
12
class ErrorCodes :
@@ -155,16 +154,16 @@ def get_details(request: Request, project_id: str):
155
154
return handle_response (resp )
156
155
157
156
158
- @app .get ("/project/{project_id}/import/base_config " )
159
- def get_base_config (request : Request , project_id : str ):
157
+ @app .get ("/project/{project_id}/import/full_config " )
158
+ def get_full_config (request : Request , project_id : str ):
160
159
try :
161
160
get_user_id_from_request (request )
162
161
except KeyError :
163
162
return responses .JSONResponse (
164
163
status_code = status .HTTP_401_UNAUTHORIZED ,
165
164
content = {"error_code" : ErrorCodes .UNRECOGNIZED_USER },
166
165
)
167
- url = f"{ CONFIG_URI } /base_config "
166
+ url = f"{ BASE_URI } /full_config "
168
167
resp = requests .get (url )
169
168
return handle_response (resp )
170
169
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ docker run -d --rm \
15
15
--mount type=bind,source=" $( pwd) " /,target=/app \
16
16
-e GATEWAY=http://refinery-gateway:80 \
17
17
-e KRATOS=http://kratos:4433 \
18
- -e CONFIG=http://refinery-config:80 \
19
18
-v /var/run/docker.sock:/var/run/docker.sock \
20
19
--network dev-setup_default \
21
20
refinery-gateway-proxy-dev > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments