Skip to content

Commit

Permalink
Merge pull request #16 from sthsuyash/feature/post
Browse files Browse the repository at this point in the history
minor changes for posting news
  • Loading branch information
sthsuyash authored Jan 25, 2025
2 parents 473670c + c4eae41 commit 05eae40
Show file tree
Hide file tree
Showing 4 changed files with 493 additions and 431 deletions.
4 changes: 2 additions & 2 deletions admin-panel/src/services/postsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import { api } from "@/config/index";
}
};

export const createPost = async (postData: any) => {
const createPost = async (postData: any) => {
const response = await api.post("/posts/admin", postData);
return response.data.data;
};

export { fetchPosts };
export { fetchPosts, createPost };
Loading

0 comments on commit 05eae40

Please sign in to comment.