Commit Graph

578 Commits

Author SHA1 Message Date
Matteo Pagliazzi d5d13477d7 wip user controllers: local login method 2015-11-18 18:02:35 +01:00
Matteo Pagliazzi 2dfca76a5e Merge pull request #6256 from HabitRPG/api-v3-apidoc
API v3 - apidoc wip
2015-11-18 17:12:14 +01:00
Matteo Pagliazzi 65a8d2e255 misc fixes and improvements, starts adding route tests 2015-11-18 12:36:13 +01:00
Matteo Pagliazzi 6fb4fdfd8a create apidoc task in grunt, update package.json version 2015-11-18 11:50:55 +01:00
Blade Barringer 08c4ec5557 Merge branch 'develop' into api-v3 2015-11-17 23:15:15 -06:00
Blade Barringer 05eb0ec782 Add missing comma. 2015-11-17 17:26:18 -06:00
Matteo Pagliazzi 18503e31c3 fix linting 2015-11-17 19:31:51 +01:00
Matteo Pagliazzi 2a51117d21 comment errors according to apidoc, add new tests and fix existing ones 2015-11-17 19:22:47 +01:00
Matteo Pagliazzi 846800ccc9 fix linting 2015-11-17 17:49:59 +01:00
Matteo Pagliazzi 9905deec06 move static handler to separate middleware 2015-11-17 17:02:53 +01:00
Matteo Pagliazzi aa1b046cf2 add example apidoc comments, add notFound middleware 2015-11-17 16:48:50 +01:00
Blade Barringer 8b7f50bfcf Adjust memory leak message to be meaningful.
Got this message in the heroku logs:
2015-11-17T04:28:18.549451+00:00 app[web.1]:  '[Memory Leak] Memory=' + parseFloat(memory).toFixed(3) + ' Time=' + moment()

Converted the line into a variable and threw that instead.
2015-11-16 22:34:06 -06:00
Blade Barringer e6a5d08150 Merge branch 'develop' into api-v3 2015-11-16 17:34:30 -06:00
Sabe Jones e73c7be47a fix(achievement): Make Costume Contest repeatable 2015-11-16 16:07:16 -05:00
Matteo Pagliazzi 30eed12903 Merge pull request #6245 from HabitRPG/api-v3-routes
Api v3 Routes
2015-11-16 17:07:46 +01:00
Blade Barringer cc0eefd97d Remove coffeescript dependency 2015-11-15 15:45:30 -06:00
Matteo Pagliazzi 3fe6f87a96 fix linting 2015-11-15 22:44:17 +01:00
Matteo Pagliazzi 448ed70ab9 add example controller and lib to setup routes 2015-11-15 22:40:00 +01:00
Blade Barringer 49fd6b9f5c Merge branch 'api-v3' of github.com:HabitRPG/habitrpg into api-v3 2015-11-15 14:59:57 -06:00
Blade Barringer 00055ad055 Merge branch 'develop' into api-v3 2015-11-15 14:57:41 -06:00
Matteo Pagliazzi 83eb2308fb Merge pull request #6232 from HabitRPG/api-v3-utils
[API v3] Port Utils
2015-11-15 20:01:48 +01:00
Matteo Pagliazzi 1ccb9a5aaa move ported middlewares to /api-v2 2015-11-15 18:15:06 +01:00
Matteo Pagliazzi 5dc2fb0b6f port domainMiddleware 2015-11-15 18:12:55 +01:00
Blade Barringer a127bb8711 Switch to babel-core form babel.
Babel includes the CLI, which we don't need.
2015-11-15 08:59:57 -06:00
Blade Barringer ddeb0e7b23 Add babel register in the server file 2015-11-15 08:16:11 -06:00
Matteo Pagliazzi 19ce7c9b53 add tests for emails (wip) and encryption, misc fixes 2015-11-14 17:43:56 +01:00
Matteo Pagliazzi 170a25c712 remove v2 utils where possible 2015-11-14 17:43:56 +01:00
Matteo Pagliazzi b315d10c79 migrate utils to v3, uprade nodemailer 2015-11-14 17:43:56 +01:00
Matteo Pagliazzi 6343bc9f59 port buildManifest lib 2015-11-14 15:50:57 +01:00
Matteo Pagliazzi 9c8d4c383f fix eslint, remove unused constant 2015-11-14 15:37:02 +01:00
Matteo Pagliazzi ae656b044c firebase can be enabled when not in production 2015-11-14 14:52:10 +01:00
Matteo Pagliazzi cf4eb7c89b Merge pull request #6237 from HabitRPG/api-v3-firebase
port firebase lib to api v3
2015-11-14 13:14:50 +01:00
Matteo Pagliazzi d89b1cb60d port firebase lib to api v3 2015-11-14 02:50:58 +01:00
Blade Barringer 2e21d227e0 Simplify get language from user function. 2015-11-13 19:36:49 -06:00
Blade Barringer 4a52f22774 Correct path to old i18n file 2015-11-13 19:30:36 -06:00
Blade Barringer 805d4bba24 Adjust for linter. 2015-11-13 18:29:19 -06:00
Blade Barringer 4cd4c588a8 Add tests for browser selection of language and refactor 2015-11-13 18:22:20 -06:00
Blade Barringer f672ac8c59 Port over change to v2 lib 2015-11-13 18:22:20 -06:00
Blade Barringer dc8d52e00a Correct paths in v2 lib 2015-11-13 18:22:20 -06:00
Blade Barringer 06dd343d47 Adjust i18n script to actually display zh_TW language. 2015-11-13 18:22:19 -06:00
Blade Barringer 8372a56d88 Adjust style of User.findOne call. 2015-11-13 18:22:17 -06:00
Blade Barringer 0a99361953 Adjust i18n script to actually display zh_TW language. 2015-11-13 15:52:52 -06:00
Matteo Pagliazzi 0daa63c2ca Merge branch 'api-v3' into api-v3-i18n 2015-11-13 19:38:31 +01:00
Matteo Pagliazzi 8fd82c6808 fix some requires 2015-11-13 17:50:34 +01:00
Blade Barringer 49a6a7167b Merge branch 'api-v3' into api-v3-i18n 2015-11-13 10:49:21 -06:00
Matteo Pagliazzi 879ec97408 fix some requires 2015-11-13 17:41:18 +01:00
Blade Barringer 939bc893c6 Correct test to check req status after function is finished. 2015-11-13 09:21:22 -06:00
Matteo Pagliazzi 79c20105a1 use new logger where possible 2015-11-13 15:16:00 +01:00
Blade Barringer be672e570c Merge branch 'api-v3' into api-v3-i18n 2015-11-13 07:44:48 -06:00
Blade Barringer 6e8e1648d9 Merge branch 'develop' into api-v3 2015-11-13 07:38:24 -06:00