Base de donnée opé

This commit is contained in:
ETHEVE Fabien
2023-02-06 13:54:51 +01:00
parent 0c934709ce
commit c3d6e4423d
10 changed files with 700 additions and 5 deletions
+21 -2
View File
@@ -1,2 +1,21 @@
import { Express } from "express";
import { PrismaClient } from "@prisma/client";
import express from "express";
import { PrismaClient } from "@prisma/client";
import createError from "http-errors"
import jeux from './route/jeux.js'
const app = express()
app.use(express.json())
app.use(express.urlencoded({extended:true}))
const port = 3500
app.use('/',jeux)
// run the server
app.listen(port, () => {
console.log(`Example app listening on port ${port}`);
});