UNPKG

generator-aristos

Version:

create aristos cms fast with yeoman generator.

18 lines (15 loc) 486 B
const express = require("express"); const router = express.Router(); const auth = require("../../../../important/AppStuff/authorization/auth"); const isAdmin = auth.isAdmin; const contactController = require("../controllers/admin_contact_controller"); /* * GET, POST contact form */ router .route("/") .get(isAdmin, contactController.index) .post(contactController.create); router.delete("/delete-message/:id", contactController.delete) /* Exports */ module.exports = router;