Skip to content

Commit

Permalink
Optimised code
Browse files Browse the repository at this point in the history
  • Loading branch information
Exarous committed Dec 2, 2019
1 parent 76a6d31 commit 54e38dc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/javascripts/functions/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const checkAdmin = require('./checkAdmin.js');
const pwh = require('password-hash');
const setLoggedIn = require('./setLoggedIn.js');
const writeRealIP = require('./writeRealIP.js');
const consolecmd = require('./console.js');
const consolecmd = require('./console/consolecmd.js');

const login = (req, arg_login, arg_password) => {
return new Promise(async(resolve, reject) => {
Expand Down
2 changes: 1 addition & 1 deletion routes/clan.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ const express = require('express');
const router = express.Router();
const stdParameter = require('../public/javascripts/functions/stdParameter.js');
const stdCall = require('../public/javascripts/functions/stdCall.js');
const getUserInfo = require('../public/javascripts/functions/getUserInfo.js');
const loadClans = require('../public/javascripts/functions/clans/loadClans.js');
const createClan = require('../public/javascripts/functions/clans/createClan.js');
const joinClan = require('../public/javascripts/functions/clans/joinClan');
const clanInfo = require('../public/javascripts/functions/clans/clanInfo');
const leaveClan = require('../public/javascripts/functions/clans/leaveClan.js');
const getUserInfo = require('../public/javascripts/functions/getUserInfo.js');

router.get('/', async(req, res, next) => {
await stdCall(req);
Expand Down
2 changes: 1 addition & 1 deletion routes/mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ const express = require('express');
const router = express.Router();
const stdParameter = require('../public/javascripts/functions/stdParameter.js');
const stdCall = require('../public/javascripts/functions/stdCall.js');
const getUserInfo = require('../public/javascripts/functions/getUserInfo.js');
const sendMail = require('../public/javascripts/functions/mail/sendMail.js');
const loadInbox = require('../public/javascripts/functions/mail/loadInbox.js');
const deleteMail = require('../public/javascripts/functions/mail/delMail.js');
const getUserInfo = require('../public/javascripts/functions/getUserInfo.js');

router.get('/', async(req, res, next) => {
stdCall(req);
Expand Down
4 changes: 2 additions & 2 deletions routes/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const express = require('express');
const router = express.Router();
const stdParameter = require('../public/javascripts/functions/stdParameter.js');
const stdCall = require('../public/javascripts/functions/stdCall.js');
const getUserInfo = require('../public/javascripts/functions/getUserInfo.js');
const countServer = require('../public/javascripts/functions/server/countServer.js');
const buyServer = require('../public/javascripts/functions/server/buyServer.js');
const listServer = require('../public/javascripts/functions/server/listServer.js');
Expand All @@ -11,8 +12,7 @@ const genNewPassword = require('../public/javascripts/functions/server/genNewPas
const loadInventory = require('../public/javascripts/functions/inventory/loadInventroy.js');
const getItemData = require('../public/javascripts/functions/inventory/getItemData.js');
const installSrvItem = require('../public/javascripts/functions/inventory/installSrvItem.js');
const consolecmd = require('../public/javascripts/functions/console.js');
const getUserInfo = require('../public/javascripts/functions/getUserInfo.js');
const consolecmd = require('../public/javascripts/functions/console/consolecmd.js');

router.get('/', async(req, res, next) => {
await stdCall(req);
Expand Down
4 changes: 2 additions & 2 deletions routes/stocks.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const express = require('express');
const router = express.Router();
const stdCall = require('../public/javascripts/functions/stdCall.js');
const stdParameter = require('../public/javascripts/functions/stdParameter.js');
const stdCall = require('../public/javascripts/functions/stdCall.js');
const getUserInfo = require('../public/javascripts/functions/getUserInfo.js');
const stocks = require('../public/javascripts/functions/stocks/getStock.js');
const buyStock = require('../public/javascripts/functions/stocks/buyStock.js');
const loadStocks = require('../public/javascripts/functions/stocks/loadStocks.js');
const sellStock = require('../public/javascripts/functions/stocks/sellStock.js');
const getUserInfo = require('../public/javascripts/functions/getUserInfo.js');

router.get('/', async(req, res, next) => {
await stdCall(req);
Expand Down

0 comments on commit 54e38dc

Please sign in to comment.