Skip to content

Instantly share code, notes, and snippets.

@hieptl
Created November 16, 2021 00:13
Show Gist options
  • Save hieptl/40c5a60e173f6357e390fbf09fbd7a7b to your computer and use it in GitHub Desktop.
Save hieptl/40c5a60e173f6357e390fbf09fbd7a7b to your computer and use it in GitHub Desktop.
index.js - routes -server - Instagram Clone React Node
const authRoutes = require("./auth");
const userRoutes = require("./users");
const followerRoutes = require("./followers");
const notificationRoutes = require("./notifications");
const postRoutes = require("./posts");
const reactionRoutes = require("./reactions");
module.exports = function ({ app, dbConn, upload }) {
authRoutes({ app, dbConn });
userRoutes({ app, dbConn, upload });
followerRoutes({ app, dbConn });
notificationRoutes({ app, dbConn });
postRoutes({ app, dbConn, upload });
reactionRoutes({ app, dbConn });
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment