{"size": 270, "ext": "js", "max_stars_repo_path": "routes/posts.js", "max_stars_repo_name": "scokljat/instagram-clone-server", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "routes/posts.js", "max_issues_repo_name": "scokljat/instagram-clone-server", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "routes/posts.js", "max_forks_repo_name": "scokljat/instagram-clone-server", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.2857142857, "max_line_length": 77, "alphanum_fraction": 0.6888888889}
const express = require("express");

const { getPosts, createPost, deletePost } = require("../controllers/posts");

const router = express.Router();

router.get("/", getPosts);

router.post("/", createPost);

router.delete("/:id", deletePost);

module.exports = router;
