prod124njac/prod124njac-back-b/authsec_node/Backend/routes/basicp1/Forma.routes.js

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