Skip to content

Commit

Permalink
minor changes for posting news
Browse files Browse the repository at this point in the history
  • Loading branch information
AmishB7 committed Jan 24, 2025
1 parent feb44b2 commit 5fca159
Show file tree
Hide file tree
Showing 4 changed files with 484 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 5fca159

Please sign in to comment.