김건희

[Update] Blank Secret Key and DB Address

...@@ -11,9 +11,9 @@ app.use(bodyParser.json()); ...@@ -11,9 +11,9 @@ app.use(bodyParser.json());
11 app.use(cors()); 11 app.use(cors());
12 12
13 let logData=null; 13 let logData=null;
14 -const uri = 'mongodb+srv://sjieu17:tjrwls147714@cluster0.lc6pe.mongodb.net/weather_briefing?retryWrites=true&w=majority'; 14 +
15 -var queryParams = '?' + encodeURIComponent('serviceKey') + '=3OcUyvx97Vx2YikiZ9IHyRQ6suapku7Xn8VlefQKQWrGIFOGaejhbevwagcubdHfSiQAqJwCV5lyIutw0%2BsppA%3D%3D'; /* Service Key*/ 15 +const uri = ''; // 개인 mongoDB 주소
16 -// const uri = 'mongodb+srv://tahmkench:dkrldnsl7@cluster0.vzipl.mongodb.net/?retryWrites=true&w=majority'; 16 +var queryParams = '?' + encodeURIComponent('serviceKey') + ''; /* Service Key*/
17 17
18 let db = mongoose.connect(uri, (err) => { 18 let db = mongoose.connect(uri, (err) => {
19 if (err) { 19 if (err) {
...@@ -258,13 +258,6 @@ app.post('/api/tommorrow',(req,res)=>{ ...@@ -258,13 +258,6 @@ app.post('/api/tommorrow',(req,res)=>{
258 });//pop:강수확률 tmp:한시간 기온 258 });//pop:강수확률 tmp:한시간 기온
259 }); 259 });
260 260
261 -// let cors = require('cors');
262 -// let app = express();
263 -
264 -
265 -// const uri = 'mongodb+srv://sjieu17:tjrwls147714@cluster0.lc6pe.mongodb.net/weather_briefing?retryWrites=true&w=majority';
266 -//const uri = 'mongodb+srv://tahmkench:dkrldnsl7@cluster0.vzipl.mongodb.net/?retryWrites=true&w=majority';
267 -
268 var Clothes = mongo.model('clothes', clothesSchema); 261 var Clothes = mongo.model('clothes', clothesSchema);
269 262
270 app.use(bodyParser.json()); 263 app.use(bodyParser.json());
......