Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source-group1
/
animal-Info
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
Eunsu486
2021-05-22 16:55:30 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7f2fb2d59cf37b4d63b494716e68a4a05a1ebf88
7f2fb2d5
1 parent
a87d0b62
add index header
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
9 deletions
app.js
views/components/header.ejs
views/index.ejs
app.js
View file @
7f2fb2d
...
...
@@ -23,12 +23,12 @@ app.use('/', indexRouter);
app
.
use
(
'/users'
,
usersRouter
);
// catch 404 and forward to error handler
app
.
use
(
function
(
req
,
res
,
next
)
{
app
.
use
(
function
(
req
,
res
,
next
)
{
next
(
createError
(
404
));
});
// error handler
app
.
use
(
function
(
err
,
req
,
res
,
next
)
{
app
.
use
(
function
(
err
,
req
,
res
,
next
)
{
// set locals, only providing error in development
res
.
locals
.
message
=
err
.
message
;
res
.
locals
.
error
=
req
.
app
.
get
(
'env'
)
===
'development'
?
err
:
{};
...
...
views/components/header.ejs
0 → 100644
View file @
7f2fb2d
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<h1>동물 관련 정보</h1>
\ No newline at end of file
views/index.ejs
View file @
7f2fb2d
<!DOCTYPE html>
<html>
<head>
<title>
<
%= title %>
</title>
<head>
<title>
Animal Info
</title>
<link
rel=
'stylesheet'
href=
'/stylesheets/style.css'
/>
</head>
<body>
<h1>
<
%= title %>
</h1>
<p>
Welcome to
<
%= title %>
</p>
</body>
</head>
<body>
<
%- include("components/header") -%>
<h2>
서울 동물
</h2>
<p>
지역 선택
</p>
</body>
</html>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment