Created
September 6, 2022 20:51
-
-
Save gabrielbmoro/71f5ed5741c90948b0782a80e6d43db4 to your computer and use it in GitHub Desktop.
An API Project - Gists Part 1
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 express, { Request, Response, NextFunction } from "express"; | |
require('express-async-errors'); | |
import { historyRoutes } from "./routes/history.routes"; | |
const app = express(); | |
app.use(express.json()); | |
app.use("/history", historyRoutes); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment