Skip to content

Commit 23842f9

Browse files
committed
fix: bugs
1 parent 6d5101b commit 23842f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ const applicationRoutes = require('./routes/applicationRoutes');
1111
const app = express();
1212
const router = express.Router();
1313

14-
const port = process.env.PORT;
14+
const port = process.env.PORT || 8000;
1515

1616
app.use(bodyParser.json());
1717
app.use(bodyParser.urlencoded({ extended: true }));
18-
app.use(cors({ origin: 'http://localhost:3000' }));
18+
app.use(cors({ origin: '*' }));
1919

2020
router.get('/', (req, res) => {
2121
res.send('Welcome to the TalentEase API');

0 commit comments

Comments
 (0)