Commit Graph

126 Commits

Author SHA1 Message Date
5ec0ee0bfb Migrated the media.ts route 2023-11-07 09:16:48 +01:00
774fed90b8 Migrated the links.ts route 2023-11-07 09:16:42 +01:00
51e7b2562d Migrated the authenticate.ts middleware 2023-11-07 09:16:33 +01:00
0d83a0f670 Added new values to the envCheck.ts 2023-11-07 09:16:14 +01:00
3224adf6c1 Updated the .env.example 2023-11-07 09:16:00 +01:00
5cb47f6cd9 Started migrating to mariadb in the package.json 2023-11-07 09:14:57 +01:00
e414db9caa Fixed a bug in the media route 2022-09-09 16:00:01 +02:00
99b6102847 Added deleteMedia to the media controller 2022-09-09 15:59:43 +02:00
4afba19ee9 Created the DELETE /media/:id route to delete a file from the bucket & database 2022-09-09 15:59:13 +02:00
edf7f6c25a Added the getMediaById method to the media controller 2022-09-09 15:51:19 +02:00
fee00cc143 Created the GET /media/:id route to get a media object 2022-09-09 15:51:06 +02:00
a0585b6a73 Integrated the /media route into the api server 2022-09-09 15:43:51 +02:00
4d084c3e23 Created the POST /media/upload route to upload media 2022-09-09 15:43:40 +02:00
3a38ad2d36 Integrated a logic for the content delivery server 2022-09-09 15:42:15 +02:00
ea0027cac3 Added a default value for the assetEnding in the media controller 2022-09-09 15:41:11 +02:00
55df6c907a Updated the media model 2022-09-09 15:40:55 +02:00
7551d1a0cc Created the media controller 2022-09-09 15:23:30 +02:00
c057909643 Created the bucket controller to control the google storage bucket 2022-09-09 15:16:03 +02:00
2fb459ff1c Added the @gcloud/storage & multer package to the package.json 2022-09-09 15:15:22 +02:00
f1a52d3c90 Integrated the new link controller into the shortener server 2022-09-09 15:14:51 +02:00
eb5e070fac Added getLinkObjectById to the link controller 2022-09-09 15:14:39 +02:00
a5498d3409 Migrated to the new link controller & updated the permissions of the routes 2022-09-09 15:14:25 +02:00
f018392067 Created the link controller 2022-09-09 15:06:17 +02:00
1fdf9c84f6 Added the GCLOUD_STORAGE_BUCKET env variable to the envCheck.ts 2022-09-09 01:44:53 +02:00
e7b44746e8 Added GET /links/ to the links.ts router 2022-09-09 01:39:31 +02:00
b62a6d5f08 Fixed a bug in the Media & ShortenedLink model 2022-09-09 01:38:03 +02:00
e20bf72703 Added GET /link/:code to the links.ts router 2022-09-09 01:30:17 +02:00
43e2f9553f Added DELETE /link/:code to the links.ts router 2022-09-09 01:26:29 +02:00
ed75a8ed49 Added the links router to the api server 2022-09-09 01:10:57 +02:00
c7a88c133b Created the links.ts router & created a route to insert a new link 2022-09-09 01:10:44 +02:00
adee79675c Implemented the code for the shortener 2022-09-09 01:09:11 +02:00
cb17c65dcc Changed the default value of the shortened id in the ShortenedLink.ts 2022-09-09 01:07:55 +02:00
a4e8b0b839 Created authenticate.ts#hasRank 2022-09-09 01:07:34 +02:00
558e84ff7f Created the validation object for the link shortener 2022-09-09 01:07:09 +02:00
1514edad54 Created the validation util 2022-09-09 01:06:54 +02:00
0e04039c15 Added the joi dependency to the package.json 2022-09-09 01:06:34 +02:00
a02206781f Integrated the /session route into the api server 2022-09-08 23:55:33 +02:00
bc5c62a8b9 Created the /session route 2022-09-08 23:55:15 +02:00
0555645573 Added the discord client id, secret & redirect uri as environment values to the envCheck util 2022-09-08 23:54:50 +02:00
846ed71982 Created the discord controller 2022-09-08 23:54:23 +02:00
bb23b7ce01 Added the discord-oauth2 package to the package.json 2022-09-08 23:49:31 +02:00
8c5a4a94a0 Removed the action socket from the backend -> Moving into another repo 2022-09-08 22:30:33 +02:00
499a44cad7 Integrated the authentication middleware into the api server 2022-09-08 22:30:03 +02:00
227ae68555 Created the authentication middleware 2022-09-08 22:29:38 +02:00
b8c8fa700b The cdn now only starts if the gbucket.json file has been provided 2022-09-08 22:21:51 +02:00
dfeb238469 Added the google authentication check into the envCheck util 2022-09-08 22:21:31 +02:00
0d5834f53d Created the Media model 2022-09-08 22:09:49 +02:00
5d192dc12a Created the ShortenedLink model 2022-09-08 22:08:59 +02:00
0f623486ce Created the Token model 2022-09-08 22:08:06 +02:00
63478822ba Created the User model 2022-09-08 22:04:32 +02:00