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