Skip to content

Commit

Permalink
Fixed auth-service
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiollende committed Mar 20, 2024
1 parent 6a4ed88 commit 64c8ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/services/auth-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const login = async (username: string, password: string)=> {

export const register = async (email:string, username: string, password: string) => {
try {
const response = await axios.post(userServiceUrl + "/user/adduser", { username, password, email });
const response = await axios.post(API_URL + "/adduser", { username, password, email });
console.log('response:', response);
const name = response.data;
return name;
Expand Down

0 comments on commit 64c8ca9

Please sign in to comment.