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 12:20:35 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c5b75b3547f99a4fd87efa97a3ee4d775a04d36b
c5b75b35
1 parent
95b6625f
판 리스트 get 구현
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/routes/board.js
src/routes/board.js
View file @
c5b75b3
const
app
=
require
(
'./server'
);
const
db
=
require
(
'./db'
);
app
.
get
(
'/board'
,
async
(
req
,
res
)
=>
{
res
.
json
({
boards
:
await
db
.
get
(
'board'
).
find
()});
})
app
.
get
(
'/board/:bid'
,
async
(
req
,
res
)
=>
{
let
board
=
await
db
.
get
(
'board'
).
findOne
({
name
:
req
.
params
.
bid
});
if
(
!
board
)
{
...
...
Please
register
or
login
to post a comment