text: import express from "express"
  
  import { createPost, getPosts } from "../controllers/posts.js"
  import auth from "../middleware/auth.js"
  
  const router = express.Router()
  
  router.get("/", getPosts)
  router.post("/", auth, createPost)
  
  export default router