Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최시원
/
Singer-Composer
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
Mukho
2021-11-18 13:36:18 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ec1e5f2be4f88ce3c29ac62de493e22d5f9a4b34
ec1e5f2b
1 parent
87dd6883
delete 1 line
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
router/board/index.js
router/board/index.js
View file @
ec1e5f2
...
...
@@ -10,7 +10,7 @@ var board = mysql_odbc.init();
router
.
get
(
'/list/:page'
,
function
(
req
,
res
,
next
)
{
var
id
=
req
.
user
;
if
(
!
id
)
res
.
redirect
(
'/board/list'
)
if
(
!
id
)
res
.
redirect
(
'/board/list
/1
'
)
else
{
var
page
=
req
.
params
.
page
;
var
sql
=
"select idx, name, title, date_format(modidate,'%Y-%m-%d %H:%i:%s') modidate, "
+
...
...
@@ -20,7 +20,6 @@ router.get('/list/:page', function(req, res, next) {
if
(
err
)
console
.
error
(
"err : "
+
err
);
var
id
=
req
.
user
.
ID
;
var
nickname
=
req
.
user
.
nickname
;
if
(
!
id
)
nickname
=
"손님"
// 수정 예정
res
.
render
(
'list.ejs'
,
{
'ID'
:
id
,
'nickname'
:
nickname
,
title
:
'게시판 리스트'
,
rows
:
rows
})
})
}
...
...
Please
register
or
login
to post a comment