Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2019-1-OpenSourceSW
/
Probability Death
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
배희수
2018-12-06 12:07:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7a24a4698d5f0164d9857406543bd5c95d24f454
7a24a469
1 parent
52496da3
MySQL 세션 파트 삭제
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
11 deletions
routes/index.js
routes/index.js
View file @
7a24a46
...
...
@@ -2,17 +2,9 @@ var express = require('express');
var
router
=
express
.
Router
();
var
mysql
=
require
(
'mysql'
);
var
connection
=
mysql
.
createConnection
({
host
:
'ryulth.com'
,
user
:
'kkonzi'
,
password
:
'kkonzi1234'
,
database
:
'kkonzi_test'
});
/* GET home page. */
router
.
get
(
'/'
,
function
(
req
,
res
,
next
)
{
// mysql 세션 연결
connection
.
connect
();
// connection.query('SELECT * FROM ');
// 자외선지수, 불쾌지수, 열지수, 체감 온도, 바람속도, 현재기온, 하늘 상태, 강우량, 태풍, 낙뢰
...
...
@@ -22,8 +14,6 @@ router.get('/', function(req, res, next) {
deathProb
=
uvr
+
discomfort
+
heat
+
sensibleTem
+
windSpeed
+
presentTem
+
skyState
+
rainfall
+
typhoon
+
lightning
;
res
.
render
(
'index'
,
{
title
:
'Express'
});
connecttion
.
end
();
});
module
.
exports
=
router
;
...
...
Please
register
or
login
to post a comment