Flam3rboy
c3c8026041
✨ route specific rate limits
2021-07-01 21:27:46 +02:00
Flam3rboy
79e1adc5ce
✨ finished Rate Limit
2021-07-01 11:16:13 +02:00
Flam3rboy
efc522a0c6
🚧 rate limit
2021-07-01 09:33:54 +02:00
Flam3rboy
14a31ad143
🚧 rate limit
2021-06-28 18:43:50 +02:00
Flam3rboy
47d30153f4
⬆️ update dev client version
2021-06-27 23:26:49 +02:00
Flam3rboy
ea676ddd03
🔒 register proxy ip check
2021-06-27 23:14:13 +02:00
Flam3rboy
9b59296af5
🐛 fix CORS
2021-06-26 19:48:20 +02:00
Joaquim Peixoto
ef19ecedb7
CORS FIX
2021-06-25 14:54:13 +01:00
Flam3rboy
2be07d2f73
✨ empty messages check + allowed mentions
2021-06-23 19:23:41 +02:00
Umimaso
4c0c09c8bc
feat: add routing for unversioned api requests
...
Create new route for /api which can handle routing of unversioned
requests. Update regex for NO_AUTHORIZATION_ROUTES to support
unversioned requests.
2021-06-19 15:49:49 +01:00
Umimaso
f10df31f5c
feat: add widget endpoints
...
Implemented the four widget related endpoints of the api. Partial user
object being returned as part of the widget.json endpoint [1] is an
intentional choice related to privacy [2].
The widget.json endpoint will require additional changes upon completion
of other work. Member details will need to return extra key/values for
connected users to voice channels. An additional avatar_url value will
hold an unique avatar url for the user + guild, fetched via a CDN
endpoint widget-avatars.
New dependencies `canvas` and `image-size`. Canvas is used to create the
widget.png endpoint image [3]. Image-size is used to set the canvas'
size to match the widget template images.
Use regex in determining if a NO_AUTHORIZATION_ROUTES is hit or not.
[1] https://discord.com/developers/docs/resources/guild#get-guild-widget
[2] https://github.com/discord/discord-api-docs/issues/1287
[3] https://discord.com/developers/docs/resources/guild#get-guild-widget-image
Closes : #9 , #110
2021-06-19 14:50:11 +01:00
Flam3rboy
8f87546aeb
✨ use new config
2021-05-24 20:47:06 +02:00
Diego Magdaleno
28424ed950
Fix: No more type casting required, rather take the gernics
2021-05-23 13:43:38 -05:00
Diego Magdaleno
ff7985ad7d
Config: Final config additons, now everything should work as desired
2021-05-22 18:51:46 -05:00
Diego Magdaleno
05057b922a
Config: Refactor config method, so we have a new get all option, fix issues in configurations
2021-05-21 18:18:58 -05:00
Diego Magdaleno
e3f6a29df7
Config: First rewrite of config and working implementation of getting values
2021-05-19 20:39:31 -05:00
Flam3rboy
babb5364a5
🐛 fix test client
2021-05-05 15:05:23 +02:00
Flam3rboy
bbeab4da65
🎨 added optional captcha to login route
2021-05-01 13:54:12 +02:00
Flam3rboy
b40d6b825b
npm i @fosscord/server-util
2021-04-22 23:37:07 +02:00
Flam3rboy
4528a96ded
prepare npm publish
2021-04-22 23:29:06 +02:00
Flam3rboy
e971ba1b62
🎨 change default port to 1000 + CORS
2021-04-19 22:00:48 +02:00
xnacly
3252e91f6b
exclude path from authentication
2021-04-08 17:53:16 +02:00
Flam3rboy
482088b91b
fix error handler
2021-04-07 15:54:15 +02:00
Flam3rboy
7089287016
🎨 Convert id bigint to string
2021-04-06 18:02:10 +02:00
Flam3rboy
8b64ab4f38
🚧 experiments + gateway route
2021-04-06 03:58:27 +02:00
Flam3rboy
6e009484a6
✨ init test client
2021-04-05 21:43:11 +02:00
Flam3rboy
c0fd1d1f2f
🐛 fix body parser
2021-04-05 21:24:36 +02:00
Flam3rboy
6a1e0594dc
rename req.userid -> req.user_id
2021-03-08 18:40:37 +01:00
Flam3rboy
6e05dc6902
🐛 add webhooks to whitelist auth
2021-02-22 16:48:12 +01:00
Flam3rboy
a0cb65ccad
🎨 restructure + add/remove Member() function
2021-02-22 15:51:53 +01:00
Flam3rboy
eb181ae41d
📝 #CHANNELID -> #channelid
2021-02-22 08:37:10 +01:00
Flam3rboy
0341fcf99c
fix req.userid -> convert to bigint
2021-02-17 18:24:40 +01:00
Flam3rboy
8cd6190513
🎨 show proper auth error
2021-02-17 18:13:51 +01:00
Flam3rboy
eca7b96de3
🐛 fix token checking
2021-02-17 18:12:07 +01:00
Flam3rboy
2ffca731bd
🐛 fix db connect
2021-02-16 21:03:32 +01:00
Flam3rboy
4a815d302a
🔥 disable rate limit for now -> wait till mongoose model exists
2021-02-16 11:22:51 +01:00
Flam3rboy
a94f7c7617
switch to mongoose
2021-02-14 19:01:41 +01:00
Flam3rboy
91f2e73da0
Merge branch 'master' of https://github.com/discord-open-source/discord-api
2021-02-10 14:34:55 +01:00
Flam3rboy
9b95834b4b
🐛 fix error handler
2021-02-10 14:34:54 +01:00
Flam3rboy
a283d70b83
update imports for fosscord-server-util
2021-02-10 14:16:30 +01:00
Flam3rboy
ce07018e30
🐛 update imports
2021-02-06 10:09:32 +01:00
Flam3rboy
c53d6628f7
use discord-server-util
2021-02-05 17:47:44 +01:00
Flam3rboy
8505d9279b
🎨 Body Parser error
2021-02-02 00:51:00 +01:00
Flam3rboy
2026ea5911
✨ added defaults to config
2021-02-01 21:49:01 +01:00
Flam3rboy
d2795bdd0a
⚡ Convert BitField to BigInt
2021-01-30 23:55:32 +01:00
Flam3rboy
76000f8fa1
✨ Util
2021-01-30 19:58:15 +01:00
Flam3rboy
879dafb5d1
✨ RateLimit
2021-01-30 19:57:28 +01:00
Flam3rboy
14f08f05ac
✨ Authentication
2021-01-30 19:57:07 +01:00