refactor: Update URL for validating secret key in app.py

The code changes in `app.py` update the URL for validating the secret key. The previous URL was using the endpoint `/api/code-repository/is-valid/{secretKey}`, and it has been changed to `/api/copilot-code-repository/is-valid/{secretKey}`. This change ensures that the correct endpoint is used for validating the secret key in the OneUptime service.
This commit is contained in:
Simon Larsen 2024-07-09 19:38:29 +00:00
parent 3234112644
commit 658cb9fee3

View File

@ -31,7 +31,7 @@ async def validateSecretKey(secretKey):
async with aiohttp.ClientSession() as session:
print(f"Validating secret key")
url = f"{ONEUPTIME_URL}/api/code-repository/is-valid/{secretKey}"
url = f"{ONEUPTIME_URL}/api/copilot-code-repository/is-valid/{secretKey}"
async with session.get(url) as response:
print(response)
if response.status == 200: