Skip to content

Commit

Permalink
fix: Attempt to fix AS api check and missing JobRequest view
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Jan 13, 2025
1 parent 925532f commit b17df15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,5 @@ def schema_view(request):
path("", include(router.urls)),
path("auth/", drf_views.obtain_auth_token, name="auth"),
path("swagger/", schema_view),
path("job_request/", viewer_views.JobRequestView.as_view(), name="job_request"),
path('token/', viewer_views.TokenView.as_view(), name="token_view"),
]
6 changes: 3 additions & 3 deletions viewer/squonk2_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ def ping(self) -> Squonk2AgentRv:
return Squonk2AgentRv(success=False, msg=msg)

resp = None
url = f'{self.__CFG_SQUONK2_DMAPI_URL}/api'
url = f'{self.__CFG_SQUONK2_DMAPI_URL}/api/'
try:
resp = requests.head(
url, verify=self.__verify_certificates, timeout=REQUEST_TIMEOUT_S
Expand All @@ -886,9 +886,9 @@ def ping(self) -> Squonk2AgentRv:
return Squonk2AgentRv(success=False, msg=msg)

resp = None
url = f'{self.__CFG_SQUONK2_ASAPI_URL}/api'
url = f'{self.__CFG_SQUONK2_ASAPI_URL}/api/'
try:
resp = requests.head(
resp = requests.get(
url, verify=self.__verify_certificates, timeout=REQUEST_TIMEOUT_S
)
except Exception:
Expand Down
1 change: 1 addition & 0 deletions viewer/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
path("open_targets/", views.get_open_targets, name="get_open_targets"),
path("upload_designs/", views.DesignSetUploadView.as_view(), name="upload_designs"),
path("job_access/", views.JobAccessView.as_view(), name="job_access"),
path("job_request/", views.JobRequestView, name="job_request"),
path(
"task_status/<uuid:task_id>/",
views.TaskStatusView.as_view(),
Expand Down

0 comments on commit b17df15

Please sign in to comment.