Skip to content

Commit f80a742

Browse files
committed
Added configs
1 parent a7cc775 commit f80a742

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

client/.env

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
SKIP_PREFLIGHT_CHECK=true
1+
SKIP_PREFLIGHT_CHECK=true
2+
REACT_APP_API_URL = "http://localhost:5000"

server/server.js

-19
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,6 @@ app.use(cors());
4242
//Definning routes
4343
app.use('/', authRoute);
4444

45-
app.get(
46-
'/user/:id',
47-
function(req, res, next) {
48-
// if the user ID is 0, skip to the next route
49-
if (req.params.id === '0') next('route');
50-
// otherwise pass the control to the next middleware function in this stack
51-
else next();
52-
},
53-
function(req, res, next) {
54-
// send a regular response
55-
res.send('regular');
56-
}
57-
);
58-
59-
// handler for the /user/:id path, which sends a special response
60-
app.get('/user/:id', function(req, res, next) {
61-
res.send('special');
62-
});
63-
6445
app.use(errorHandler);
6546

6647
const PORT = process.env.PORT || 5000;

0 commit comments

Comments
 (0)