You can not 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
380 B

import express from "express";
import { IngredientsController } from "./controllers/ingredients.controller"
const app = express();
app.get('/', (req, res) => {
res.send('Hello from express and typescript !');
});
app.use('/ingredients', IngredientsController);
const port = process.env.PORT || 3000;
app.listen(port, () => console.log(`App listenning on PORT ${port}`));