mirror of
https://github.com/franjsco/tick3t-api
synced 2025-01-02 10:07:09 +01:00
edit route: users
This commit is contained in:
parent
8c2beec2be
commit
8279d3cd8d
@ -1,10 +1,9 @@
|
||||
const express = require('express');
|
||||
import express from 'express';
|
||||
|
||||
import { authenticate } from '../controllers/user';
|
||||
|
||||
const router = express.Router();
|
||||
const userController = require('../controllers/users');
|
||||
|
||||
router.post('/register', userController.create);
|
||||
router.post('/login', authenticate);
|
||||
|
||||
router.post('/login', userController.authenticate);
|
||||
|
||||
module.exports = router;
|
||||
export default router;
|
||||
|
Loading…
Reference in New Issue
Block a user