Skip to content

Commit

Permalink
fix: diracx url
Browse files Browse the repository at this point in the history
  • Loading branch information
aldbr committed Oct 9, 2023
1 parent 82bbe44 commit 4f5a67a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "diracx-webapp",
"name": "diracx-web",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/jobs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const fetcher = (args: any[]) => {

export function useJobs() {
const { accessToken } = useOidcAccessToken();
const url = `${process.env.NEXT_PUBLIC_DIRACX_URL}/jobs/search?page=0&per_page=100`;
const url = `${process.env.NEXT_PUBLIC_DIRACX_URL}/api/jobs/search?page=0&per_page=100`;
const { data, error } = useSWR([url, accessToken], fetcher);

return {
Expand Down

0 comments on commit 4f5a67a

Please sign in to comment.