2.1.1 • Published 9 months ago
express-mapper v2.1.1
express-map
Develop your backend faster
How to use
npx create-express-map server
cd server
yarn/npm install
Now open http://localhost:3001/index
Know express mapper
Create a new path for your server
- Create a folder in "Routes" like "auth"
- in auth, create a Ts file named login
- Add the following lines to it
Now the path /auth/login is live http://localhost:3001/auth/loginexport default { mode: 'get', fun: (req: any, res: any) => { console.log('got req') res.send('hi') } };