Created
October 29, 2021 18:21
-
-
Save SidneyAllen/f5d6e61a38d309728dfa83389b7dade8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// router.js | |
import { Router } from "express"; | |
import createTemplate from "./template/create.js"; | |
import listTemplate from "./template/list.js"; | |
const router = new Router(); | |
router.post("/templates/create", createTemplate); | |
router.get("/templates", listTemplate); | |
export default router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment