Skip to content
Snippets Groups Projects
Commit bc644ad6 authored by Morris, George (UG - Computer Science)'s avatar Morris, George (UG - Computer Science)
Browse files

Created the function placeholders for all post routes

parent 4a906106
No related branches found
No related tags found
2 merge requests!8CI/CD,!2Posts service
import mongoose from 'mongoose';
import Post from '../models/Post.js';
export const getPosts = async (req, res) => {
};
export const createPost = async (req, res) => {
}
export const getPostById = async (req, res) => {
}
export const deletePost = async (req, res) => {
}
export const likePost = async (req, res) => {
}
export const addComment = async (req, res) => {
}
export const removeComment = async (req, res) => {
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment