Commit Graph

29 Commits

Author SHA1 Message Date
Alicia
bd1b959836 adaq 2019-02-25 21:04:55 +00:00
Alicia
5fc84bd914 fix schiavo error and changing rippleapi to api 2019-02-23 13:11:47 +00:00
Alicia
5b78c99b04 Allow import straight from github 2019-02-23 13:09:10 +00:00
Morgan Bazalgette
1136738111
Implement bearer tokens 2017-06-17 18:11:10 +02:00
Morgan Bazalgette
490d13e333 Add back old middlewares 2017-02-02 15:13:17 +01:00
Morgan Bazalgette
85e6dc7e5e Move to fasthttp for improved performance 2017-02-02 13:40:28 +01:00
Morgan Bazalgette
41ee4c90b3 Move from git.zxq.co to zxq.co 2017-01-14 18:06:16 +01:00
Howl
26435c1195 Add beatmap rank requests 2016-11-19 19:53:55 +01:00
Howl
e5504d2e29 whoops 2016-10-02 22:30:52 +02:00
Howl
2e2b1e481b Revert "requests -> requestsbytype"
This reverts commit a060187547.
2016-10-02 21:59:04 +02:00
Howl
a060187547 requests -> requestsbytype 2016-10-02 21:54:23 +02:00
Howl
3a55524c86 Add some more datadog crap 2016-10-02 20:07:38 +02:00
Howl
da0021a9b3 Add some datadog shit 2016-10-02 19:47:31 +02:00
Howl
e4d27f8d6b Allow users with AdminManageUsers to see banned users
Also:
- General code refactoring
- Allow banned/restricted users to see their scores etc
- common.MethodData now contains UserPrivileges
- UserPrivileges have now their own type
- Implement md.HasQuery, to know if there's a GET querystring parameter or not
2016-08-27 12:04:12 +02:00
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