mirror of
https://github.com/Floriansylvain/PopCorn.git
synced 2026-08-19 11:43:23 +02:00
Base de donnée opé
This commit is contained in:
@@ -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}`);
|
||||
});
|
||||
Reference in New Issue
Block a user