Commit Graph

21 Commits

Author SHA1 Message Date
Blade Barringer
b97511db31 fix: Use module.exports instead of export default 2016-03-04 13:29:51 -06:00
Matteo Pagliazzi
96c582e062 fix tests, move most errors to shared code 2016-03-03 19:16:03 +01:00
Matteo Pagliazzi
80f791c86b add tests, move CustomError to common, fix casting 2016-03-03 00:16:28 +01:00
Matteo Pagliazzi
6088b6da42 fix edge case where res.respond would not work, misc comments 2016-01-13 18:35:29 +01:00
Matteo Pagliazzi
0272a36bac finish implementing tests for POST-tasks.test.js 2015-12-07 14:22:54 +01:00
Matteo Pagliazzi
6a4ab17c56 fix linting and add comment 2015-11-23 21:43:39 +01:00
Matteo Pagliazzi
1bf91030c6 format express-validator errors 2015-11-23 21:34:21 +01:00
Matteo Pagliazzi
645095e58f fix errorHandler tests, add tests for res.respond 2015-11-23 13:28:25 +01:00
Matteo Pagliazzi
349122c9a1 add res.respond, fix linting 2015-11-23 13:01:47 +01:00
Matteo Pagliazzi
a26f713e18 misc fixes, add ability to attach local auth to social user 2015-11-23 12:47:15 +01:00
Matteo Pagliazzi
5c33a404fb handle mongoose validation errors, fix bug in import and add more tests for errors 2015-11-21 15:00:31 +01:00
Matteo Pagliazzi
8f9d2a5f9a change to erro handler middleware to log full error object and support express-validator 2015-11-11 10:12:13 +01:00
Matteo Pagliazzi
7dd6eb76c9 add express-validator, add body parser middleware, support some more errors in error handler middleware 2015-11-08 22:48:31 +01:00
Matteo Pagliazzi
ac7d3e642f port middlewares to authenticate users with headers and sessions 2015-11-07 15:37:38 +01:00
Blade Barringer
5cd3f0dd6e Fix eslint styling errors. 2015-11-04 21:19:58 -06:00
Blade Barringer
87eb63ba9b Add case where errorhandlerr does not receive an error 2015-11-04 20:48:39 -06:00
Blade Barringer
d5736e1178 Convert classes to use Babel syntax 2015-11-04 20:47:32 -06:00
Matteo Pagliazzi
3135613be3 tweaks eslint rules, fixes gulp-eslint, adds some comments 2015-11-04 18:50:08 +01:00
Matteo Pagliazzi
54d89a59e3 add some eslint rules 2015-11-04 18:26:38 +01:00
Matteo Pagliazzi
5e73bc9f1c adds logger and starts logging errors 2015-11-04 18:26:38 +01:00
Matteo Pagliazzi
4322b8c3dc wip api-v3: add error handler middleware and custom error classes 2015-11-04 18:26:38 +01:00