Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김민규
/
rest_stop_list
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
지창언
2022-05-12 22:34:52 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b2c620ffdf1f59dd97b453c7e6a5875ddb22090f
b2c620ff
1 parent
ec58223c
login&signup routing, name modified
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
25 additions
and
35 deletions
app/app.js
app/public/faq.html
app/routes/sign_up.js → app/routes/signup.js
app/views/contact.html
app/views/faq.html
app/views/index.html
app/public/login.html → app/views/login.html
app/views/lpg.html
app/views/menu.html
app/public/signup.html → app/views/signup.html
app/views/weather.html
app/app.js
View file @
b2c620f
...
...
@@ -7,7 +7,7 @@ var bodyParser = require('body-parser')
var
expressErrorHandler
=
require
(
'express-error-handler'
);
var
indexRouter
=
require
(
'./routes/index'
)
var
loginRouter
=
require
(
'./routes/login'
)
var
sign
_upRouter
=
require
(
'./routes/sign_
up'
)
var
sign
upRouter
=
require
(
'./routes/sign
up'
)
var
lpgRouter
=
require
(
'./routes/lpg'
)
var
weatherRouter
=
require
(
'./routes/weather'
)
var
menuRouter
=
require
(
'./routes/menu'
)
...
...
@@ -40,7 +40,7 @@ app.use('/menu',menuRouter)
app
.
use
(
'/login'
,
loginRouter
);
// login page route
app
.
use
(
'/weather'
,
weatherRouter
)
app
.
use
(
'/lpg'
,
lpgRouter
)
app
.
use
(
'/signup'
,
sign
_
upRouter
);
// sign up page route
app
.
use
(
'/signup'
,
signupRouter
);
// sign up page route
app
.
use
(
'/'
,
indexRouter
);
// main page route
...
...
app/public/faq.html
0 → 100644
View file @
b2c620f
This diff is collapsed. Click to expand it.
app/routes/sign
_
up.js
→
app/routes/signup.js
View file @
b2c620f
...
...
@@ -2,7 +2,7 @@ var express = require('express')
var
router
=
express
.
Router
()
router
.
get
(
'/'
,
function
(
req
,
res
){
res
.
render
(
'
views/
signup.html'
)
res
.
render
(
'signup.html'
)
});
...
...
app/views/contact.html
View file @
b2c620f
...
...
@@ -37,8 +37,8 @@
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownLogin"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Login
</a>
<ul
class=
"dropdown-menu dropdown-menu-end"
aria-labelledby=
"navbarDropdownLogin"
>
<li><a
class=
"dropdown-item"
href=
"
login.html
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
signup.html
"
>
Sign-up
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/login
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/signup
"
>
Sign-up
</a></li>
</ul>
</li>
</ul>
...
...
app/views/faq.html
View file @
b2c620f
...
...
@@ -37,8 +37,8 @@
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownLogin"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Login
</a>
<ul
class=
"dropdown-menu dropdown-menu-end"
aria-labelledby=
"navbarDropdownLogin"
>
<li><a
class=
"dropdown-item"
href=
"
login.html
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
signup.html
"
>
Sign-up
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/login
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/signup
"
>
Sign-up
</a></li>
</ul>
</li>
</ul>
...
...
app/views/index.html
View file @
b2c620f
...
...
@@ -37,8 +37,8 @@
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownLogin"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Login
</a>
<ul
class=
"dropdown-menu dropdown-menu-end"
aria-labelledby=
"navbarDropdownLogin"
>
<li><a
class=
"dropdown-item"
href=
"
login.html
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
signup.html
"
>
Sign-up
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/login
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/signup
"
>
Sign-up
</a></li>
</ul>
</li>
</ul>
...
...
app/
public
/login.html
→
app/
views
/login.html
View file @
b2c620f
...
...
@@ -21,10 +21,7 @@
<nav
class=
"navbar navbar-expand-lg navbar-dark bg-dark"
>
<div
class=
"container px-5"
>
<a
class=
"navbar-brand"
href=
"/"
>
휴게소 정보
</a>
<button
class=
"navbar-toggler"
type=
"button"
data-bs-toggle=
"collapse"
data-bs-target=
"#navbarSupportedContent"
aria-controls=
"navbarSupportedContent"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
><span
class=
"navbar-toggler-icon"
></span></button>
<button
class=
"navbar-toggler"
type=
"button"
data-bs-toggle=
"collapse"
data-bs-target=
"#navbarSupportedContent"
aria-controls=
"navbarSupportedContent"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
><span
class=
"navbar-toggler-icon"
></span></button>
<div
class=
"collapse navbar-collapse"
id=
"navbarSupportedContent"
>
<ul
class=
"navbar-nav ms-auto mb-2 mb-lg-0"
>
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"/"
>
Home
</a></li>
...
...
@@ -33,19 +30,17 @@
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"/lpg"
>
LPG
</a></li>
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"faq.html"
>
FAQ
</a></li>
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownBlog"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Blog
</a>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownBlog"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Blog
</a>
<ul
class=
"dropdown-menu dropdown-menu-end"
aria-labelledby=
"navbarDropdownBlog"
>
<li><a
class=
"dropdown-item"
href=
"blog-home.html"
>
Blog Home
</a></li>
<li><a
class=
"dropdown-item"
href=
"blog-post.html"
>
Blog Post
</a></li>
</ul>
</li>
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownLogin"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Login
</a>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownLogin"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Login
</a>
<ul
class=
"dropdown-menu dropdown-menu-end"
aria-labelledby=
"navbarDropdownLogin"
>
<li><a
class=
"dropdown-item"
href=
"
login.html
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
signup.html
"
>
Sign-up
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/login
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/signup
"
>
Sign-up
</a></li>
</ul>
</li>
</ul>
...
...
app/views/lpg.html
View file @
b2c620f
...
...
@@ -37,8 +37,8 @@
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownLogin"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Login
</a>
<ul
class=
"dropdown-menu dropdown-menu-end"
aria-labelledby=
"navbarDropdownLogin"
>
<li><a
class=
"dropdown-item"
href=
"
login.html
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
signup.html
"
>
Sign-up
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/login
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/signup
"
>
Sign-up
</a></li>
</ul>
</li>
</ul>
...
...
app/views/menu.html
View file @
b2c620f
...
...
@@ -37,8 +37,8 @@
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownLogin"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Login
</a>
<ul
class=
"dropdown-menu dropdown-menu-end"
aria-labelledby=
"navbarDropdownLogin"
>
<li><a
class=
"dropdown-item"
href=
"
login.html
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
signup.html
"
>
Sign-up
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/login
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/signup
"
>
Sign-up
</a></li>
</ul>
</li>
</ul>
...
...
app/
public
/signup.html
→
app/
views
/signup.html
View file @
b2c620f
...
...
@@ -21,10 +21,7 @@
<nav
class=
"navbar navbar-expand-lg navbar-dark bg-dark"
>
<div
class=
"container px-5"
>
<a
class=
"navbar-brand"
href=
"/"
>
휴게소 정보
</a>
<button
class=
"navbar-toggler"
type=
"button"
data-bs-toggle=
"collapse"
data-bs-target=
"#navbarSupportedContent"
aria-controls=
"navbarSupportedContent"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
><span
class=
"navbar-toggler-icon"
></span></button>
<button
class=
"navbar-toggler"
type=
"button"
data-bs-toggle=
"collapse"
data-bs-target=
"#navbarSupportedContent"
aria-controls=
"navbarSupportedContent"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
><span
class=
"navbar-toggler-icon"
></span></button>
<div
class=
"collapse navbar-collapse"
id=
"navbarSupportedContent"
>
<ul
class=
"navbar-nav ms-auto mb-2 mb-lg-0"
>
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"/"
>
Home
</a></li>
...
...
@@ -33,19 +30,17 @@
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"/lpg"
>
LPG
</a></li>
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"faq.html"
>
FAQ
</a></li>
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownBlog"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Blog
</a>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownBlog"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Blog
</a>
<ul
class=
"dropdown-menu dropdown-menu-end"
aria-labelledby=
"navbarDropdownBlog"
>
<li><a
class=
"dropdown-item"
href=
"blog-home.html"
>
Blog Home
</a></li>
<li><a
class=
"dropdown-item"
href=
"blog-post.html"
>
Blog Post
</a></li>
</ul>
</li>
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownLogin"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Login
</a>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownLogin"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Login
</a>
<ul
class=
"dropdown-menu dropdown-menu-end"
aria-labelledby=
"navbarDropdownLogin"
>
<li><a
class=
"dropdown-item"
href=
"
login.html
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
signup.html
"
>
Sign-up
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/login
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/signup
"
>
Sign-up
</a></li>
</ul>
</li>
</ul>
...
...
app/views/weather.html
View file @
b2c620f
...
...
@@ -37,8 +37,8 @@
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownLogin"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Login
</a>
<ul
class=
"dropdown-menu dropdown-menu-end"
aria-labelledby=
"navbarDropdownLogin"
>
<li><a
class=
"dropdown-item"
href=
"
login.html
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
signup.html
"
>
Sign-up
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/login
"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"
/signup
"
>
Sign-up
</a></li>
</ul>
</li>
</ul>
...
...
Please
register
or
login
to post a comment