File tree 2 files changed +2
-20
lines changed
2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change 1
- SKIP_PREFLIGHT_CHECK = true
1
+ SKIP_PREFLIGHT_CHECK = true
2
+ REACT_APP_API_URL = " http://localhost:5000"
Original file line number Diff line number Diff line change @@ -42,25 +42,6 @@ app.use(cors());
42
42
//Definning routes
43
43
app . use ( '/' , authRoute ) ;
44
44
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
-
64
45
app . use ( errorHandler ) ;
65
46
66
47
const PORT = process . env . PORT || 5000 ;
You can’t perform that action at this time.
0 commit comments