Commit dd828c65 authored by nanahira's avatar nanahira

Merge branch 'mc'

parents 363775f1 b5486025
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
}, },
"license": "AGPL-3.0", "license": "AGPL-3.0",
"scripts": { "scripts": {
"start": "node ygopro-server.js" "start": "node ygopro-server.js",
"tournament": "node ygopro-tournament.js",
"pre": "node ygopro-pre.js",
"updated": "node ygopro-update.js",
"webhook": "node ygopro-webhook.ks"
} }
} }
...@@ -480,7 +480,7 @@ var packDatas = function (callback) { ...@@ -480,7 +480,7 @@ var packDatas = function (callback) {
} }
//建立一个http服务器,接收API操作 //建立一个http服务器,接收API操作
function requestListener(req, res) { async function requestListener(req, res) {
var u = url.parse(req.url, true); var u = url.parse(req.url, true);
if (!await auth.auth(u.query.username, u.query.password, "pre_dashboard", "pre_dashboard")) { if (!await auth.auth(u.query.username, u.query.password, "pre_dashboard", "pre_dashboard")) {
......
...@@ -217,7 +217,7 @@ var receiveDecks = function(files, callback) { ...@@ -217,7 +217,7 @@ var receiveDecks = function(files, callback) {
} }
//建立一个http服务器,接收API操作 //建立一个http服务器,接收API操作
function requestListener(req, res) { async function requestListener(req, res) {
var u = url.parse(req.url, true); var u = url.parse(req.url, true);
/*if (u.query.password !== config.password) { /*if (u.query.password !== config.password) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment