21 lines
458 B
JavaScript
21 lines
458 B
JavaScript
|
|
||
|
const {
|
||
|
createUser,
|
||
|
getUsers,
|
||
|
getUsersPaged,
|
||
|
getUsersByUserId,
|
||
|
updateUsers,
|
||
|
deleteUsers,
|
||
|
} = require("../../entity/basicp1/Forma.controller")
|
||
|
|
||
|
const router = require("express").Router()
|
||
|
|
||
|
router.get("/", getUsers).post("/", createUser).get("/getall/page",getUsersPaged)
|
||
|
router
|
||
|
.get("/:id", getUsersByUserId)
|
||
|
.put("/:id", updateUsers)
|
||
|
.delete("/:id", deleteUsers)
|
||
|
|
||
|
module.exports = router
|
||
|
|