-
Notifications
You must be signed in to change notification settings - Fork 26
Bug 905629 - Implement reporting makes #141
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ if ( env.get( "ENABLE_GELF_LOGS" ) ) { | |
| logger.init(); | ||
| app.use( logger.middleware() ); | ||
| } else { | ||
| app.use( express.logger() ); | ||
| app.use( express.logger( "dev" ) ); | ||
| } | ||
|
|
||
| app.use(express.favicon("public/images/favicon.ico", { | ||
|
|
@@ -105,6 +105,8 @@ app.put( "/api/20130724/make/:id", middleware.hawkAuth, Mongo.isDbOnline, middle | |
| app.put( "/api/20130724/make/like/:id", middleware.hawkAuth, Mongo.isDbOnline, middleware.getMake, middleware.like, routes.update ); | ||
| app.put( "/api/20130724/make/unlike/:id", middleware.hawkAuth, Mongo.isDbOnline, middleware.getMake, middleware.unlike, routes.update ); | ||
| app.del( "/api/20130724/make/:id", middleware.hawkAuth, Mongo.isDbOnline, middleware.getMake, routes.remove ); | ||
| app.put( "/api/20130724/make/report/:id", middleware.hawkAuth, Mongo.isDbOnline, middleware.getMake, middleware.report, routes.update ); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can file a general bug on this as it's not a huge deal, but all of these routes should actually have
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should actually file a bug to remove isDbOnline altogether. If the DB is down, errors retrieving data should be caught by the error handling middleware. |
||
| app.put( "/api/20130724/make/cancelReport/:id", middleware.hawkAuth, Mongo.isDbOnline, middleware.getMake, middleware.cancelReport, routes.update ); | ||
| app.get( "/api/20130724/make/search", Mongo.isDbOnline, middleware.crossOrigin, routes.search ); | ||
|
|
||
| // 20130724 Admin API routes | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason behind this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because it's an array?