Skip to content

Instantly share code, notes, and snippets.

@gabrielbmoro
Created September 6, 2022 20:53
Show Gist options
  • Save gabrielbmoro/bad897b1937e823f6c2fd8979ac7f4ee to your computer and use it in GitHub Desktop.
Save gabrielbmoro/bad897b1937e823f6c2fd8979ac7f4ee to your computer and use it in GitHub Desktop.
An API Project - Gists Part 2
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