Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion dronesym-frontend/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angular-cli.json`.

export const environment = {
production: true
production: true,
mapsApiKey: 'AIzaSyDLWQDonjNmWvlxq3JvrEOIBPgY7BFkgjA',
nodeApiURL: 'http://localhost:3000/dronesym/api/node',
feedURL: 'http://localhost:3000/feed'
};
1 change: 1 addition & 0 deletions dronesym-node/Controllers/droneCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ exports.getDroneById = function(id, callBack) {
Drone.find({_id: id}).then((response) => {
callBack(response);
}).catch((err) => {
callBack({status:'Error',msg:'ID not found'});
console.error(err);
});
// droneRef.orderByKey().equalTo(id)
Expand Down
3 changes: 2 additions & 1 deletion dronesym-node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ let sockConn = require('./websocket').init(http);
let droneRouter = require('./Routers/droneRouter');
let userRouter = require('./Routers/userRouter');
let mongoConfig = require('./config/example.mongoconfig');

const helmet = require('helmet');
app.use(helmet.hidePoweredBy());
app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true}));
Expand Down
Loading