1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +01:00
Commit Graph

885 Commits

Author SHA1 Message Date
Flam3rboy
9c6a33c9d9 Merge branch 'master' of https://github.com/fosscord/fosscord-api 2021-07-10 18:05:12 +02:00
Flam3rboy
f5b301a161 findOne auto throws error if it doesn't exist' 2021-07-10 18:05:11 +02:00
Flam3rboy
d0287f1edf
Merge pull request #168 from jhcpeixoto/master
UPDATE BCRYPT
2021-07-09 19:45:49 +02:00
Joaquim Peixoto
3ee963950d
UPDATE BCRYPT
FROM 3.0.0 to 5.0.0
https://www.npmjs.com/package/@types/bcrypt
2021-07-09 18:41:12 +01:00
Flam3rboy
52ba4982be 🚧 pkg binary bundle 2021-07-08 11:05:12 +02:00
Flam3rboy
5150f07b57 ⬆️ update server-util 2021-07-07 15:39:38 +02:00
Flam3rboy
d2b8a7ed5a
Merge pull request #166 from robigan/openapi-yml
Openapi yml
2021-07-05 18:45:30 +02:00
robigan
15025a8548
Remove .insomnia folder... 2021-07-05 18:43:30 +02:00
robigan
366502cef4
Init of the openapi.yml file
Needs some checking and isn't exactly swagger compliant but should be ok
2021-07-05 18:40:43 +02:00
robigan
bbe8c133c3
Merge branch 'fosscord:master' into master 2021-07-05 18:32:55 +02:00
robigan
c6465ff6d5 A bit more data... 2021-07-05 18:32:21 +02:00
Flam3rboy
e4785ed772
Merge pull request #165 from fosscord/l10n_master
New Crowdin updates
2021-07-05 14:29:02 +02:00
Flam3rboy
7c8dc1b6c2 New translations common.json (Hindi) 2021-07-05 13:42:49 +02:00
robigan
a3a01b346f New content... 2021-07-03 13:18:36 +02:00
robigan
8990fc3548 Start of fosscord api 2021-07-03 12:46:53 +02:00
Flam3rboy
c3c8026041 route specific rate limits 2021-07-01 21:27:46 +02:00
Flam3rboy
7b31ca10b3
Merge pull request #162 from fosscord/feat--rate-limit
[Feature] Rate Limit
2021-07-01 16:02:54 +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
e542df3377 🐛 fix ip address lookup 2021-06-27 23:51:30 +02:00
Flam3rboy
3f7e8296d0 v9 2021-06-27 23:30:36 +02:00
Flam3rboy
cc9c666c0f 🐛 fix import 2021-06-27 23:28:25 +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
624a4d5694 🐛 fix empty message bug for attachments 2021-06-26 22:45:01 +02:00
Flam3rboy
9b59296af5 🐛 fix CORS 2021-06-26 19:48:20 +02:00
Flam3rboy
4a0d4ae909
Merge pull request #161 from fosscord/l10n_master
New Crowdin updates
2021-06-26 15:10:03 +02:00
Flam3rboy
336754d426 New translations common.json (Hungarian) 2021-06-26 14:36:19 +02:00
Flam3rboy
4b01d11ebe
Merge pull request #160 from jhcpeixoto/master
CORS FIX
2021-06-25 15:56:26 +02:00
Joaquim Peixoto
ef19ecedb7 CORS FIX 2021-06-25 14:54:13 +01:00
Flam3rboy
075db9523b
Merge pull request #159 from fosscord/l10n_master
New Crowdin updates
2021-06-24 23:06:21 +02:00
Flam3rboy
02d03fd662 New translations common.json (Hungarian) 2021-06-24 23:06:09 +02:00
Flam3rboy
787035fb6d New translations auth.json (Hungarian) 2021-06-24 23:06:08 +02:00
Flam3rboy
8f5bdf17ab 🐛 docker file 2021-06-24 17:22:00 +02:00
Flam3rboy
2be07d2f73 empty messages check + allowed mentions 2021-06-23 19:23:41 +02:00
Flam3rboy
295fbabf0d 🎨 move widget templates to assets 2021-06-22 20:58:17 +02:00
Flam3rboy
e525977981
Merge pull request #157 from Umimaso/widget
feat: add widget endpoints, routing for unversioned api requests
2021-06-22 18:43:08 +02:00
Flam3rboy
bb0dec2a9f 🎨 clean up code
widget.json.ts: just return instead of long if statement + add ?. operators for error handling
widget.png.ts make path universal
widget.ts: remove unnecessary guild db query as getPermission already checks it
Widget.ts make parameters required
2021-06-22 18:41:21 +02:00
Flam3rboy
edcdf4d819
Merge pull request #158 from fosscord/l10n_master
New Crowdin updates
2021-06-20 14:57:26 +02:00
Flam3rboy
8b6cc4c759 New translations common.json (Lithuanian) 2021-06-20 13:46:01 +02:00
Flam3rboy
70368a7203 New translations auth.json (Lithuanian) 2021-06-20 13:46:01 +02:00
Flam3rboy
cd5b0fa37e
Merge pull request #151 from fosscord/l10n_master
New Crowdin updates
2021-06-19 17:28:32 +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
df321dbc04 New translations common.json (Lithuanian) 2021-06-19 13:50:48 +02:00
Flam3rboy
36508c4dc1 New translations auth.json (Lithuanian) 2021-06-19 13:50:47 +02:00
Flam3rboy
f18b651dbd New translations auth.json (Portuguese) 2021-06-09 17:52:36 +02:00
Flam3rboy
8bd1dc2ff9 New translations common.json (Portuguese) 2021-06-08 17:56:39 +02:00
Flam3rboy
761633e119 New translations common.json (Portuguese) 2021-06-07 17:56:59 +02:00