Toggle navigation
Toggle navigation
This project
Loading...
Sign in
장재훈
/
TFT_Chat_Bot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
2
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
장재훈
2020-06-29 10:31:13 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6a22a3fa6fb5c86691f1d3283de1a4dbc7426871
6a22a3fa
1 parent
92f6ba72
modify server files
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
server/champion.js
server/main.js
server/champion.js
View file @
6a22a3f
...
...
@@ -8,7 +8,7 @@ const fs = require('fs');
exports
.
championFunction
=
function
(
req
,
res
)
{
var
responseBody
=
{};
const
championName
=
req
.
body
[
"action"
][
"params"
][
"champion_name"
];
let
championRawData
=
fs
.
readFileSync
(
'data/json data/champions.json'
);
let
championRawData
=
fs
.
readFileSync
(
'
../
data/json data/champions.json'
);
let
championData
=
JSON
.
parse
(
championRawData
);
console
.
log
(
championName
);
if
(
championName
==
undefined
){
...
...
server/main.js
View file @
6a22a3f
...
...
@@ -8,7 +8,7 @@ const item = require('./item.js')
const
trait
=
require
(
'./trait.js'
)
const
galaxy
=
require
(
'./galaxy.js'
)
//const composition = require('./composition.js')
app
.
use
(
'/static'
,
express
.
static
(
'data/Image data'
));
app
.
use
(
'/static'
,
express
.
static
(
'
../
data/Image data'
));
app
.
use
(
logger
(
'dev'
,
{}));
app
.
use
(
bodyParser
.
json
());
app
.
use
(
bodyParser
.
urlencoded
({
...
...
Please
register
or
login
to post a comment