Commit 907673f2 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: add cache on /codeartifact APIs

parent afd9ff8d
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -176,6 +176,7 @@ def get_ecr_auth_password(


@app.get("/codeartifact/auth/token", response_class=PlainTextResponse)
@cache
def get_codeartifact_auth_token(
    env_ctx: str = Query(default=None, alias="env_ctx"),
    region: str = Query(default=None, alias="region"),
@@ -210,6 +211,7 @@ def get_codeartifact_auth_token(
    return response["authorizationToken"]

@app.get("/codeartifact/repository/endpoint", response_class=PlainTextResponse)
@cache
def get_codeartifact_repository_endpoint(
    env_ctx: str = Query(default=None, alias="env_ctx"),
    region: str = Query(default=None, alias="region"),