Skip to content

Commit 94dcea8

Browse files
committed
add
1 parent 07fae38 commit 94dcea8

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

client/src/views/driver/drivertracking.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
})

client/src/views/pages/login/Login.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

server/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@ let dbReady = false;
2323
const app = express();
2424
const server = http.createServer(app);
2525
const 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

0 commit comments

Comments
 (0)