Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/choi'
Browse files Browse the repository at this point in the history
  • Loading branch information
SeokgyuYun committed Aug 26, 2024
2 parents 5d26652 + e8bbc61 commit 4602345
Show file tree
Hide file tree
Showing 8 changed files with 282 additions and 251 deletions.
41 changes: 22 additions & 19 deletions canbus-web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ const express = require('express')
const path = require('path');
const app = express()

// 라우트 정의
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, 'main', 'main.html'));
});
// 라우트 정의
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, 'auth', 'signin', 'signin.html'));
});

app.get('/auth/login', (req, res) => {
res.sendFile(path.join(__dirname, 'auth', 'signin', 'signin.html'));
});
app.get('/main', (req, res) => {
res.sendFile(path.join(__dirname, 'main', 'main.html'));
});

app.get('/auth/register', (req, res) => {
res.sendFile(path.join(__dirname, 'auth', 'signup', 'signup.html'));
});
app.get('/register', (req, res) => {
res.sendFile(path.join(__dirname, 'auth', 'signup', 'signup.html'));
});

app.get('/map', (req, res) => {
res.sendFile(path.join(__dirname, 'kakaomap', 'map.html'));
Expand All @@ -24,12 +24,15 @@ app.get('/sheet', (req, res) => {
res.sendFile(path.join(__dirname, 'sheet', 'sheet.html'));
});

app.get('/mybus', (req, res) => {
res.sendFile(path.join(__dirname, 'busRoute', 'busRouteSheet.html'));
});


// 서버 시작
app.listen(3000, () => {
console.log('Server running on port 3000');
});
app.get('/mybus', (req, res) => {
res.sendFile(path.join(__dirname, 'busRoute', 'busRouteSheet.html'));
});

app.get('/busRoute', (req, res) => {
res.sendFile(path.join(__dirname, 'busRoute', 'busRoute.html'));
});

// 서버 시작
app.listen(3000, () => {
console.log('Server running on port 3000');
});
2 changes: 1 addition & 1 deletion canbus-web/auth/signin/signin.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
})
.then(response => {
alert(response.data.message);
document.location.href='../';
document.location.href='../main';
console.log(response.data);
})
.catch(error => {
Expand Down
2 changes: 1 addition & 1 deletion canbus-web/auth/signup/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
})
.then(response => {
alert(response.data.message);
document.location.href='../auth/login';
document.location.href='../';
console.log(response.data);
})
.catch(error => {
Expand Down
Loading

0 comments on commit 4602345

Please sign in to comment.