feat(backend) criaçao de rota para retornar todos os usarios pelo profile
parent
1bb4f7562f
commit
f9594aa114
|
@ -5,10 +5,11 @@ import * as UserController from "../controllers/UserController";
|
|||
|
||||
const userRoutes = Router();
|
||||
|
||||
userRoutes.get("/users/all", isAuth, UserController.all);
|
||||
|
||||
userRoutes.get("/users", isAuth, UserController.index);
|
||||
userRoutes.get("/users", isAuth, UserController.index);
|
||||
|
||||
userRoutes.post("/users", isAuth, UserController.store);
|
||||
userRoutes.post("/users", isAuth, UserController.store);
|
||||
|
||||
userRoutes.put("/users/:userId", isAuth, UserController.update);
|
||||
|
||||
|
|
Loading…
Reference in New Issue