Commit Graph

15 Commits

Author SHA1 Message Date
Howl c3b56164f5 Change X-Ripple-Token cookie to simply "rt" 2016-08-10 12:25:26 +02:00
Howl af691bee1c Change system for hanayo requests 2016-08-09 23:06:23 +02:00
Howl 8544c41cc6 Requests from hanayo have no rate limiting 2016-07-12 15:49:02 +02:00
Howl 15559d0be2 use c.ClientIP() rather than manually accessing c.Request.RemoteAddr 2016-07-06 19:35:49 +02:00
Howl faf948b037 Implement rate limiting
- 60 requests per minute for requests without a valid API token
- 2000 requests per minute per user for requests with a valid API token
2016-07-06 16:33:58 +02:00
Howl 9658957067 Better recovery 2016-06-16 13:49:35 +02:00
Howl da6fcb83f7 Don't allow "weird" characters in jsonp callback 2016-06-13 21:17:43 +02:00
Howl 155fbabbbc Allow auth through cookie X-Ripple-Token 2016-06-08 18:55:48 +02:00
Howl d6f67915c5 Start implementing peppyapi; implement /api/get_user 2016-05-15 13:57:04 +02:00
Howl 32029d963e We git.zxq.co now 2016-04-19 16:07:27 +02:00
Howl 7387ed4295 Completely change response structure 2016-04-16 18:05:24 +02:00
Howl 0d1a298065 Implement JSONP, also save a few bytes by using tabs in indent 2016-04-08 18:06:26 +02:00
Howl e3cb4aed09 perhaps a memory/performance improvement? by not recreating the same function over and over? maybe. 2016-04-08 17:27:55 +02:00
Howl b3b4dde8f2 Use resp.Code as the HTTP response code, unless the client has specifield they want 200-codes only. 2016-04-04 16:47:15 +02:00
Howl 3ddab1de15 Initial commit 2016-04-03 19:59:27 +02:00