Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const express = require('express');
- const app = express();
- /* requiring middleware */
- const { getConnection } = require('./app/middlewares/mysql');
- /* connecting mysql before going to requested route */
- app.use('/auth', getConnection, require('./app/controllers/auth'));
Add Comment
Please, Sign In to add comment