Created
November 16, 2021 00:13
-
-
Save hieptl/40c5a60e173f6357e390fbf09fbd7a7b to your computer and use it in GitHub Desktop.
index.js - routes -server - Instagram Clone React Node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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