Toggle navigation
Toggle navigation
This project
Loading...
Sign in
배희수
/
2018_2_project
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
Committed by
unknown
2018-12-06 16:34:29 +0900
Commit
0b49b6f3dd1360aac1ce601c71ab6078031dcfe4
0b49b6f3
1 parent
3ac172ee
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 @
0b49b6f
...
...
@@ -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