Eunsu486

add index header

......@@ -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 : {};
......
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<h1>동물 관련 정보</h1>
\ No newline at end of file
<!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
......