Skip to content

Instantly share code, notes, and snippets.

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