Skip to content

Commit

Permalink
Merge pull request #19 from Somnath-Chattaraj/moderation
Browse files Browse the repository at this point in the history
moderation review system completed
  • Loading branch information
Somnath-Chattaraj authored Jul 30, 2024
2 parents 8eb00ad + 298fe59 commit 0e76094
Show file tree
Hide file tree
Showing 6 changed files with 621 additions and 1 deletion.
8 changes: 7 additions & 1 deletion backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ import cors from 'cors';
import cookieParser from 'cookie-parser';
import "dotenv/config";
import userRoutes from './routes/userRoutes';

import moderationRouter from './routes/mRuote';

import reviewRoutes from './routes/reviewRoutes';


const app = express();
app.use(express.json());
const corsOptions = {
Expand All @@ -17,7 +21,9 @@ app.use(cookieParser());


app.use("/api/user", userRoutes);

//actual path (/api/admin/reviews/approve)
// body :-> {"content":"....."}
app.use("/api/admin",moderationRouter);

app.use("/api/review", reviewRoutes)

Expand Down
Loading

0 comments on commit 0e76094

Please sign in to comment.