unknown

ignore keys file

...@@ -39,7 +39,8 @@ build/Release ...@@ -39,7 +39,8 @@ build/Release
39 # Dependency directories 39 # Dependency directories
40 node_modules/ 40 node_modules/
41 jspm_packages/ 41 jspm_packages/
42 - 42 +keys/api_option.js
43 +keys/db_option.js
43 # TypeScript v1 declaration files 44 # TypeScript v1 declaration files
44 typings/ 45 typings/
45 46
......
1 -module.exports = {
2 - key = "sdf"
3 -}
...\ No newline at end of file ...\ No newline at end of file
1 -module.exports={
2 - host: 'asdfasdf',
3 - user: '',
4 - password: '',
5 - database: ''
6 - }
...\ No newline at end of file ...\ No newline at end of file
1 const mysql = require('mysql'); 1 const mysql = require('mysql');
2 -const DB_option = require('./db_option'); 2 +const DB_option = require('../keys/db_option');
3 3
4 module.exports = mysql.createConnection(DB_option); 4 module.exports = mysql.createConnection(DB_option);
......
1 1
2 const db = require('./db.js'); 2 const db = require('./db.js');
3 - const secret_key = require('./api_option').key; 3 + const secret_key = require('../keys/api_option').key;
4 const requesting = require('request'); 4 const requesting = require('request');
5 5
6 module.exports = (server, app) => { 6 module.exports = (server, app) => {
......