Skip to content

Commit

Permalink
Adicionando barra a rota do fórum
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciused26 committed Jan 22, 2025
1 parent 4a7f7d8 commit e6b8527
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/services/forum.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ import { IResponse } from "../interfaces/response.interface";
const API_URL = process.env.EXPO_PUBLIC_API_URL;
const API_PORT = process.env.EXPO_PUBLIC_API_FORUM_PORT;
const BASE_URL = `${API_URL}:${API_PORT}/api/forum`;
const CREATE_POST = `${API_URL}:${API_PORT}/api/forum/`;

export const postPublicacao = async (
body: IPublicacaoBody,
token: string,
): Promise<IResponse<IPublicacao | null>> => {
const response = await fetch(BASE_URL, {
const response = await fetch(CREATE_POST, {
method: "POST",
headers: {
Accept: "application/json",
Expand Down

0 comments on commit e6b8527

Please sign in to comment.