Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이해님
/
term-project
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
Yulim KIM
2020-12-09 19:03:23 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1f17aae8c27897bc57c64fae5739905ace5bdca7
1f17aae8
1 parent
2cb5964a
modified
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
twitter-controller.js
twitter-controller.js
View file @
1f17aae
...
...
@@ -31,7 +31,7 @@ exports.getUserTweetsForSearch = async function(req, res){ //검색
let
data
=
client
.
get
(
'statuses/user_timeline'
,
req
.
params
,
function
(
error
,
tweets
,
response
){
//트위터 api에서 유저의 타임라인을 가져옴 req.params에 유저 아이디가 들어있음
if
(
!
error
){
res
.
render
(
'search.html'
,{
timeline
:
tweets
,
keyword
:
req
.
params
.
keyword
});
//timeline.html 화면에 뿌려줌 그리고 tweets값을 저 페이지로 보냄
log
.
console
(
req
.
params
)
console
.
log
(
req
.
params
);
}
});
//아이디를 토대로 타임라인 가져오기
...
...
Please
register
or
login
to post a comment