Created
September 6, 2022 20:53
-
-
Save gabrielbmoro/bad897b1937e823f6c2fd8979ac7f4ee to your computer and use it in GitHub Desktop.
An API Project - Gists Part 2
This file contains hidden or 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
import { Router } from "express"; | |
import { CreateNewHistoricEntryController } from "../../controllers/CreateNewHistoricEntryController"; | |
const historyRoutes = Router(); | |
const createNewHistoricEntryController = new CreateNewHistoricEntryController(); | |
historyRoutes.post("/historic", createNewHistoricEntryController.handle); | |
export { historyRoutes }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment