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

Commit

Permalink
edit: app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
choisihun committed Aug 26, 2024
1 parent 0c045c2 commit 56b0267
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions canbus-web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ const express = require('express')

// 라우트 정의
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, 'main', 'main.html'));
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) => {
app.get('/register', (req, res) => {
res.sendFile(path.join(__dirname, 'auth', 'signup', 'signup.html'));
});

Expand Down
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

0 comments on commit 56b0267

Please sign in to comment.