Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박은주
/
Todays_Issue
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
박은주
2021-06-09 13:34:29 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7efbc9d639bd65ebd618317f33d20d98232aca03
7efbc9d6
1 parent
5b92719e
Add router
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
index.js
index.js
0 → 100644
View file @
7efbc9d
const
express
=
require
(
'express'
);
const
fs
=
require
(
'fs'
);
const
router
=
express
.
Router
();
var
sentiment
=
fs
.
readFileSync
(
"sentiment.txt"
).
toString
().
split
(
'\n'
);
var
date
=
fs
.
readFileSync
(
"date.txt"
).
toString
();
module
.
exports
=
function
(
app
){
app
.
get
(
'/'
,
function
(
req
,
res
){
res
.
render
(
'index.html'
,
{
total
:
sentiment
[
0
],
positive
:
sentiment
[
1
],
neutral
:
sentiment
[
2
],
negative
:
sentiment
[
3
],
date
:
date
});
});
}
\ No newline at end of file
Please
register
or
login
to post a comment