Skip to content

Commit

Permalink
update url construction
Browse files Browse the repository at this point in the history
  • Loading branch information
seungpark committed Jan 10, 2025
1 parent 6285486 commit d4ec3c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/snooty-data-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type Repo = {
};

export const getAllRepos = async () => {
const url: string = normalizePath(`${BASE_URL}/projects`);
const url: string = new URL('/projects', BASE_URL).toString();
try {
const res = await fetch(url, {
credentials: 'include',
Expand Down

0 comments on commit d4ec3c9

Please sign in to comment.