Skip to content

Commit

Permalink
change the api path
Browse files Browse the repository at this point in the history
  • Loading branch information
scglwsj committed Aug 12, 2024
1 parent d7458cf commit 5100d3f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions service/UserService.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
const userServiceUrl = process.env.NEXT_PUBLIC_QUEMISTRY_USER_URL || ''
const saveUserServiceUrl =`${userServiceUrl}/v1/class`
const saveUserServiceUrl =`${userServiceUrl}/class`

export const UserService = {
async addClass(userId: string, data: Class) {
console.log("calling saveClass ", saveUserServiceUrl);
const res = await fetch(saveUserServiceUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-USER-ID': userId
'Content-Type': 'application/json'
},
credentials: "include",
body: JSON.stringify(data)
Expand Down

0 comments on commit 5100d3f

Please sign in to comment.