Skip to content

Commit

Permalink
Revert "refac backend"
Browse files Browse the repository at this point in the history
This reverts commit 3f21fb1.
  • Loading branch information
fishonamos committed Dec 2, 2024
1 parent 3f21fb1 commit 4040e5c
Show file tree
Hide file tree
Showing 61 changed files with 9,132 additions and 0 deletions.
26 changes: 26 additions & 0 deletions app/server/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// const cors = require('cors');
// const landRoutes = require('./routes/landRoutes');

// //Animationllowed origins
// const allowedOrigins = ['https://landver01.onrender.com', 'https://landver.vercel.app', 'http://localhost:3000'];

// app.use(
// cors({
// origin: function (origin, callback) {
// // Allow requests with no origin (e.g., mobile apps, curl requests)
// if (!origin) return callback(null, true);

// // Check if the origin is allowed
// if (allowedOrigins.indexOf(origin) === -1) {
// const msg = 'The CORS policy for this site does not allow access from the specified Origin.';
// return callback(new Error(msg), false);
// }

// // If the origin is in the allowed list, accept the request
// return callback(null, true);
// },
// credentials: true,
// })
// );

// app.use('/api/land', landRoutes);
Loading

0 comments on commit 4040e5c

Please sign in to comment.