Eunsu486

add index header

...@@ -23,12 +23,12 @@ app.use('/', indexRouter); ...@@ -23,12 +23,12 @@ app.use('/', indexRouter);
23 app.use('/users', usersRouter); 23 app.use('/users', usersRouter);
24 24
25 // catch 404 and forward to error handler 25 // catch 404 and forward to error handler
26 -app.use(function(req, res, next) { 26 +app.use(function (req, res, next) {
27 next(createError(404)); 27 next(createError(404));
28 }); 28 });
29 29
30 // error handler 30 // error handler
31 -app.use(function(err, req, res, next) { 31 +app.use(function (err, req, res, next) {
32 // set locals, only providing error in development 32 // set locals, only providing error in development
33 res.locals.message = err.message; 33 res.locals.message = err.message;
34 res.locals.error = req.app.get('env') === 'development' ? err : {}; 34 res.locals.error = req.app.get('env') === 'development' ? err : {};
......
1 +<meta charset="UTF-8" />
2 +<meta name="viewport" content="width=device-width, initial-scale=1.0" />
3 +
4 +
5 +<h1>동물 관련 정보</h1>
...\ No newline at end of file ...\ No newline at end of file
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 - <head> 3 +
4 - <title><%= title %></title> 4 +<head>
5 - <link rel='stylesheet' href='/stylesheets/style.css' /> 5 + <title>Animal Info</title>
6 - </head> 6 + <link rel='stylesheet' href='/stylesheets/style.css' />
7 - <body> 7 +</head>
8 - <h1><%= title %></h1> 8 +
9 - <p>Welcome to <%= title %></p> 9 +<body>
10 - </body> 10 + <%- include("components/header") -%>
11 -</html> 11 + <h2>서울 동물 </h2>
12 + <p>
13 + 지역 선택
14 + </p>
15 +</body>
16 +
17 +</html>
...\ No newline at end of file ...\ No newline at end of file
......