Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김대선
/
Recruitment_Information_chatbot
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-05-29 16:37:57 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
664b2d0de85851ea8a272f0fbda947a0a6d0be82
664b2d0d
1 parent
51f76856
데이털 읽는 함수 오류 수정
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
app.js
functions/dataFunctions.js
app.js
View file @
664b2d0
...
...
@@ -19,6 +19,6 @@ const server = app.listen(3000,()=>{
app
.
get
(
'/'
,
async
(
req
,
res
)
=>
{
res
.
send
(
"hello world"
)
data
=
await
dataFunctions
.
read
()
res
.
send
(
data
)
})
\ No newline at end of file
...
...
functions/dataFunctions.js
View file @
664b2d0
...
...
@@ -19,10 +19,10 @@ const read = async () =>{
tags
=
stringArray
[
i
].
replace
(
"tags : "
,
""
).
split
(
","
)
}
else
if
(
i
%
4
==
2
){
tags
=
stringArray
[
i
].
replace
(
"url : "
,
""
)
url
=
stringArray
[
i
].
replace
(
"url : "
,
""
)
}
else
if
(
i
%
4
==
3
){
companyName
=
stringArray
[
i
].
replace
(
"company : "
,
""
)
companyName
=
stringArray
[
i
].
replace
(
"company
Name
: "
,
""
)
data
.
push
({
title
:
title
,
tags
:
tags
,
...
...
@@ -31,7 +31,7 @@ const read = async () =>{
})
}
}
console
.
log
(
data
)
return
data
}
const
save
=
async
()
=>
{
...
...
Please
register
or
login
to post a comment