Toggle navigation
Toggle navigation
This project
Loading...
Sign in
201side
/
floater
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
3
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
robin*
2020-12-09 20:32:32 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5daa2ff1d05abadefb8507a2e9bddb01c80dc3e9
5daa2ff1
1 parent
494aceca
스레드 작성 후 리다이렉트 수정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/routes/board.js
src/routes/board.js
View file @
5daa2ff
...
...
@@ -37,7 +37,7 @@ app.post('/board/:bid', async(req, res) => {
res
.
status
(
404
).
send
(
'그런 판은 우리에게 있을 수 없어.'
);
}
let
thread
=
await
db
.
get
(
'thread'
).
insert
({
board
:
board
.
_id
,
title
:
req
.
body
.
title
,
content
:
req
.
body
.
content
,
lastUpdated
:
Date
.
now
(),
count
:
1
});
res
.
redirect
(
'/thread/'
+
thread
.
insertedIds
);
res
.
redirect
(
'/thread/'
+
thread
.
_id
);
});
app
.
get
(
'/borad/:bid/thread/:tid'
,
async
(
req
,
res
)
=>
{
...
...
Please
register
or
login
to post a comment