Skip to content

Instantly share code, notes, and snippets.

@hieptl
Created September 28, 2021 04:38
Show Gist options
  • Save hieptl/1136d1b6b38d76fcbbd9abae7d664955 to your computer and use it in GitHub Desktop.
Save hieptl/1136d1b6b38d76fcbbd9abae7d664955 to your computer and use it in GitHub Desktop.
index.js - Routes - Tinder Clone
const authRoutes = require("./auth");
const userRoutes = require("./users");
const matchRequestsRoutes = require("./requests");
module.exports = function ({ app, dbConn, upload, constants }) {
authRoutes({ app, dbConn });
userRoutes({ app, dbConn, upload });
matchRequestsRoutes({ app, dbConn, constants });
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment