File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const DriverTracking = () => {
3838
3939 useEffect ( ( ) => {
4040 axios
41- . get ( ' /driver/shipments' )
41+ . get ( '/driver/shipments' )
4242 . then ( ( response ) => {
4343 setShipments ( Array . isArray ( response . data ) ? response . data : [ ] )
4444 } )
Original file line number Diff line number Diff line change @@ -39,8 +39,9 @@ const Login = () => {
3939
4040 try {
4141 const response = await axios . post ( '/login' , { username, password } )
42-
43- // Proceed to 2FA step
42+ console . log ( { username, password } )
43+ console . log ( response . data )
44+ // Proceed to 2FA step
4445 setStep ( 2 )
4546 } catch ( err ) {
4647 console . error ( err )
Original file line number Diff line number Diff line change @@ -23,12 +23,7 @@ let dbReady = false;
2323const app = express ( ) ;
2424const server = http . createServer ( app ) ;
2525const io = socketIo ( server , {
26- transports : [ 'websocket' , 'polling' ] ,
27- cors : {
28- origin : [ 'https://core2.axleshift.com' , 'http://localhost:3000' ] ,
29- methods : [ "GET" , "POST" ] ,
30- credentials : true ,
31- } ,
26+ transports : [ 'websocket' , 'polling' ]
3227} ) ;
3328
3429// Firebase Admin Initialization
You can’t perform that action at this time.
0 commit comments