Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Independent_studies_2017mis015 #509

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
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