Created
June 5, 2022 08:58
-
-
Save Lahirutech/e41ec1b6786e322170c4341bcd514f6a to your computer and use it in GitHub Desktop.
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
| //1 st step | |
| const express = require("express"); | |
| //2nd step | |
| const router = express.Router() | |
| //3rd step | |
| const profileController = require('../controllers/profile') | |
| //4th step | |
| router.post('/profile', profileController.newProfile) | |
| router.get('/profile', profileController.getProfile) | |
| //5th step | |
| module.exports=router |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment