홍지윤

Revert "api key conceal"

This reverts commit b63299bd.
"https://maps.googleapis.com/maps/api/js?key=sAIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly"
\ No newline at end of file
......@@ -16,8 +16,7 @@ mongoose.set('useCreateIndex', true);
mongoose.set('useUnifiedTopology', true);
// Connect DB environment variable
const mongokey = require('./keys.json');
mongoose.connect(mongokey.Mongokey);
mongoose.connect('mongodb+srv://Mapmory_admin:admin@cluster0.ncnjj.mongodb.net/Project-Mapmory?retryWrites=true&w=majority');
// Store DB in the variable 'db'
var db = mongoose.connection;
......
{
"Mongokey" : "mongodb+srv://Mapmory_admin:admin@cluster0.ncnjj.mongodb.net/Project-Mapmory?retryWrites=true&w=majority"
}
\ No newline at end of file
......@@ -4,8 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start" : "nodemon index.js"
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
......
......@@ -135,7 +135,7 @@
<!-- Async script executes immediately and must be after any DOM elements used in callback. -->
<script
src="./key1.js"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly"
async
></script>
</body>
......
......@@ -141,9 +141,8 @@
<!-- Async script executes immediately and must be after any DOM elements used in callback. -->
<script
src="https://maps.googleapis.com/maps/api/js?key=sAIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly"
async
></script>
......