You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
266 B
TypeScript

import express from "express";
import cors from "cors";
import morgan from "morgan";
import routes from './routes/api.routes';
const app = express()
app.use(cors(),morgan('dev'));
app.use('/', express.static('public'));
app.use('/', routes);
export default app;