Essaie de coudinary : échec

This commit is contained in:
ETHEVE Fabien
2023-02-09 13:28:11 +01:00
parent 7108d33322
commit f9c3a9ec9b
7 changed files with 1574 additions and 4 deletions
+6 -2
View File
@@ -1,7 +1,7 @@
import express from "express";
import { PrismaClient } from "@prisma/client";
import createError from "http-errors"
import cors from 'cors';
import jeux from './route/jeux.js'
import groupe from './route/groupe.js'
const app = express()
@@ -11,7 +11,11 @@ app.use(express.urlencoded({extended:true}))
const port = 3500
app.use(
cors({
origin: ["http://127.0.0.1:5500"],
})
);
app.use('/',jeux)
app.use('/',groupe)