diff --git a/canbus-web/app.js b/canbus-web/app.js index 13f3904..e60db42 100644 --- a/canbus-web/app.js +++ b/canbus-web/app.js @@ -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')); }); diff --git a/canbus-web/auth/signin/signin.html b/canbus-web/auth/signin/signin.html index fcf354b..ea81344 100644 --- a/canbus-web/auth/signin/signin.html +++ b/canbus-web/auth/signin/signin.html @@ -102,7 +102,7 @@ }) .then(response => { alert(response.data.message); - document.location.href='../'; + document.location.href='../main'; console.log(response.data); }) .catch(error => { diff --git a/canbus-web/auth/signup/signup.html b/canbus-web/auth/signup/signup.html index dcc1719..4906fe9 100644 --- a/canbus-web/auth/signup/signup.html +++ b/canbus-web/auth/signup/signup.html @@ -114,7 +114,7 @@ }) .then(response => { alert(response.data.message); - document.location.href='../auth/login'; + document.location.href='../'; console.log(response.data); }) .catch(error => {