Skip to content

Commit

Permalink
Retornando a barra para cadastro
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciused26 committed Jan 22, 2025
1 parent e6b8527 commit 787b43b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/services/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import { IUser, IUserBody, IUserLogin } from "../interfaces/user.interface";
const API_URL = process.env.EXPO_PUBLIC_API_URL;
const API_PORT = process.env.EXPO_PUBLIC_API_USUARIO_PORT;
const BASE_URL = `${API_URL}:${API_PORT}/api/usuario`;
const POST_URL = `${API_URL}:${API_PORT}/api/usuario/`;

export const postUser = async (
body: IUserBody,
): Promise<IResponse<IUser | null>> => {
const response = await fetch(BASE_URL, {
const response = await fetch(POST_URL, {
method: "POST",
headers: {
Accept: "application/json",
Expand Down

0 comments on commit 787b43b

Please sign in to comment.