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-03 21:12:56 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2ec9d5624eed858534536722a3c3278a512f2450
2ec9d562
1 parent
bc127e29
add retweet,search function
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
server.js
server.js
View file @
2ec9d56
...
...
@@ -8,6 +8,9 @@ app.set('view engine', 'ejs'); //서버가 HTML 렌더링을 할 때, EJS 엔진
app
.
engine
(
'html'
,
require
(
'ejs'
).
renderFile
);
app
.
get
(
'/timeline/:screen_name'
,
tweetsController
.
getUserTweets
);
// '/timeline/:screen_name'형식의 url이 들어오면 뒤의 함수를 실행시킴
app
.
get
(
'/timeline/:screen_name'
,
tweetsController
.
getUserSearch
);
//url들어오면 뒤의 함수 실행
app
.
get
(
'/timeline/:screen_name'
,
tweetsController
.
getUserRetweet
);
//'/timeline/:screen_name'형식의 url이 들어오면 뒤의 함수를 실행시킴
var
server
=
app
.
listen
(
3000
,
function
(){
//3000 포트 사용
console
.
log
(
"Express server has started on port 3000"
);
...
...
Please
register
or
login
to post a comment