배희수
Committed by unknown

MySQL 세션 파트 삭제

...@@ -2,17 +2,9 @@ var express = require('express'); ...@@ -2,17 +2,9 @@ var express = require('express');
2 var router = express.Router(); 2 var router = express.Router();
3 var mysql = require('mysql'); 3 var mysql = require('mysql');
4 4
5 -var connection = mysql.createConnection({
6 - host : 'ryulth.com',
7 - user : 'kkonzi',
8 - password : 'kkonzi1234',
9 - database : 'kkonzi_test'
10 -});
11 -
12 /* GET home page. */ 5 /* GET home page. */
13 router.get('/', function(req, res, next) { 6 router.get('/', function(req, res, next) {
14 - // mysql 세션 연결 7 +
15 - connection.connect();
16 // connection.query('SELECT * FROM '); 8 // connection.query('SELECT * FROM ');
17 9
18 // 자외선지수, 불쾌지수, 열지수, 체감 온도, 바람속도, 현재기온, 하늘 상태, 강우량, 태풍, 낙뢰 10 // 자외선지수, 불쾌지수, 열지수, 체감 온도, 바람속도, 현재기온, 하늘 상태, 강우량, 태풍, 낙뢰
...@@ -22,8 +14,6 @@ router.get('/', function(req, res, next) { ...@@ -22,8 +14,6 @@ router.get('/', function(req, res, next) {
22 14
23 deathProb = uvr + discomfort + heat + sensibleTem + windSpeed + presentTem + skyState + rainfall + typhoon + lightning; 15 deathProb = uvr + discomfort + heat + sensibleTem + windSpeed + presentTem + skyState + rainfall + typhoon + lightning;
24 res.render('index', {title: 'Express'}); 16 res.render('index', {title: 'Express'});
25 -
26 - connecttion.end();
27 }); 17 });
28 18
29 module.exports = router; 19 module.exports = router;
......