mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +00:00
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:
parent
3234112644
commit
658cb9fee3
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user