Skip to content
Snippets Groups Projects

Create endpoint for user-registration

Compare and Show latest version
2 files
+ 12
0
Compare changes
  • Side-by-side
  • Inline
Files
2
import { Router } from "express";
const router = Router();
// /** POST Methods */
router.route('/register').post((req, res) => res.json('Register Route'));
router.route('/login').post((req, res) => res.json('Login Route'));
export default router;
\ No newline at end of file
Loading