text: import express from "express";
  import PostController from "../controllers/postController";
  
  const router = express.Router();
  
  // router.param('id', PostController.findById);
  
  // api/v1/posts
  router.route("/posts").get(PostController.get).post(PostController.create);
  
  router
    .route("/posts/:id")
    .get(PostController.getPost)
    .delete(PostController.remove);
  //   .put(PostController.update)
  
  export default router;
  