Skip to content

Commit 07cfae6

Browse files
authored
Merge pull request #123 from RustyRory/feat/122-api-fetch
feat(front): Fixes #122 - fetch api
2 parents 89e4cbd + f2c1d54 commit 07cfae6

217 files changed

Lines changed: 4717 additions & 9475 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

saintBarthVolleyApp/backend/src/app.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ dotenv.config();
88
const app = express();
99

1010
// Middlewares
11-
app.use(cors());
11+
app.use(
12+
cors({
13+
origin: 'http://localhost:3000',
14+
credentials: true,
15+
}),
16+
);
1217
app.use(express.json()); // Pour parser le corps des requêtes en JSON
1318

1419
// Route par défaut pour tester l'API
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
36+
# vercel
37+
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts

saintBarthVolleyApp/frontend/.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// const path = require('path')
2+
3+
// const buildEslintCommand = (filenames) =>
4+
// `eslint --fix ${filenames
5+
// .map((f) => `"${path.relative(process.cwd(), f)}"`)
6+
// .join(' ')}`
7+
8+
// module.exports = {
9+
// '*.{js,jsx,ts,tsx}': [buildEslintCommand],
10+
// }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"encryption.key":"dnbabLa8Z5hHtgNMs4/7J/Id3hTjVWK47oPFla/oZdQ=","encryption.expire_at":1772480032546}
1+
{"encryption.key":"n0SX09riOuLUmRD0NXN8Mrp8d65tEg6mH2WbVPuTRzo=","encryption.expire_at":1773220379234}

0 commit comments

Comments
 (0)