Skip to content

Commit

Permalink
removed token
Browse files Browse the repository at this point in the history
  • Loading branch information
IT21042324 committed Apr 22, 2024
1 parent 70d5f53 commit 627e5d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ const userRouter = require("./routes/user");
const postRouter = require("./routes/post");
const commentRouter = require("./routes/comment");
const likeRouter = require("./routes/like");
const requireAuth = require("./middleware/requireAuth");

app.use("/api/posts", requireAuth, postRouter);
app.use("/api/posts", postRouter);
app.use("/api/users", userRouter);
app.use("/api/comments", commentRouter);
app.use("/api/likes", likeRouter);
Expand Down

0 comments on commit 627e5d7

Please sign in to comment.