mirror of
https://github.com/Floriansylvain/PopCorn.git
synced 2026-08-19 19:53:24 +02:00
Essaie de coudinary : échec
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user