Commit Graph
100 Commits
Author SHA1 Message Date
Mathias 2f03ee334b Migrated all models to string ids 2023-11-13 12:28:07 +01:00
Mathias 5e4c7e0168 Updated the channelValidation.ts 2023-11-12 18:28:23 +01:00
Mathias 0bba59383b Updated the channel.ts routes 2023-11-12 18:28:16 +01:00
Mathias 84494849f8 Updated the Guild.ts model 2023-11-12 18:19:50 +01:00
Mathias a7e0f00e75 Updated the guild.ts controller 2023-11-12 18:19:42 +01:00
Mathias f69d9c2814 Added the GET /guilds/:guildId route 2023-11-12 18:19:35 +01:00
Mathias 580f407d20 Integrated the achievements.ts route into the api.ts 2023-11-12 16:18:31 +01:00
Mathias 8eabeeacd4 Created the achievements.ts route 2023-11-12 16:18:19 +01:00
Mathias 8ef5e66bd4 Created the Achievement.ts model 2023-11-12 16:18:09 +01:00
Mathias 5851d74798 Created the Achievement.ts controller 2023-11-12 16:17:58 +01:00
Mathias b6d96121c0 Integrated the /user routes into the api.ts 2023-11-12 12:08:42 +01:00
Mathias de7a8ce4c1 Created the PATCH /guild/:guildId route 2023-11-12 12:08:29 +01:00
Mathias c88519bd52 Updated the guildValidation.ts 2023-11-12 12:07:47 +01:00
Mathias c9bda3ab32 Created the user.ts routes 2023-11-12 12:03:37 +01:00
Mathias d7eb0caa1e Created the guildValidation.ts 2023-11-12 12:03:20 +01:00
Mathias 25a2b1281f Created the guild.ts controller 2023-11-12 12:02:23 +01:00
Mathias 9cd9f23265 Added comments to discord.ts#canEditGuild 2023-11-11 19:32:40 +01:00
Mathias 7bbe4803ec Integrated the channels routes in the api.ts 2023-11-11 19:25:02 +01:00
Mathias 90f93a6a20 Created the channels.ts routes 2023-11-11 19:23:12 +01:00
Mathias 82eb156712 Updated the guilds.ts route 2023-11-11 19:21:14 +01:00
Mathias c62594a59b Created the channel.ts 2023-11-11 19:06:20 +01:00
Mathias 174dcc9223 Updated the discord.ts controller 2023-11-11 19:05:11 +01:00
Mathias 3d4dcdd7c8 Created the channelValidation.ts 2023-11-11 18:56:08 +01:00
Mathias 848ee68462 Updated the Guild.ts model 2023-11-11 18:55:50 +01:00
Mathias 933eec0f53 Updated the Channel.ts model 2023-11-11 18:55:44 +01:00
Mathias 276ea0f971 Updated the required rank of the guilds.ts route 2023-11-09 07:57:07 +01:00
Mathias 78ec0510b9 Created the Guild.ts model 2023-11-09 07:56:43 +01:00
Mathias 8d7681ae97 Created the Channel.ts model 2023-11-09 07:56:34 +01:00
Mathias 5be50f881b Removed created from the Token model 2023-11-09 07:55:47 +01:00
Mathias 1b9d43b938 Removed created from the ShortenedLink model 2023-11-09 07:55:42 +01:00
Mathias ad6b25152f Removed created from the Media model 2023-11-09 07:55:36 +01:00
Mathias 4782bff829 Updated the guilds.ts route 2023-11-09 06:36:57 +01:00
Mathias 8128167347 Fixed a bug in the discord.ts controller 2023-11-09 06:36:11 +01:00
Mathias ebff0f3914 Removed the User.ts created field 2023-11-09 06:35:51 +01:00
Mathias cd1097b04c Integrated the guilds routes into the api.ts 2023-11-08 12:43:22 +01:00
Mathias 1370260180 Added the refresh date to the session.ts route 2023-11-08 12:43:14 +01:00
Mathias c6102bcf69 Created the guilds.ts routes 2023-11-08 12:42:38 +01:00
Mathias d86a155772 Updated the discord.ts controller 2023-11-08 12:42:23 +01:00
Mathias c9f9b030a5 Added the refreshDate to the User.ts model 2023-11-08 12:40:05 +01:00
Mathias 61d766e26b Migrated the app.ts 2023-11-07 09:18:03 +01:00
Mathias 0482997ec1 Migrated the shortener.ts server 2023-11-07 09:17:53 +01:00
Mathias 4a2155c88f Migrated the contentDelivery.ts server 2023-11-07 09:17:45 +01:00
Mathias 8910583aa3 Migrated the User.ts model 2023-11-07 09:17:34 +01:00
Mathias 8b4fc500a2 Migrated the Token.ts model 2023-11-07 09:17:31 +01:00
Mathias 5b322bf580 Migrated the ShortenedLink.ts model 2023-11-07 09:17:25 +01:00
Mathias 606df61f2c Migrated the Media.ts model 2023-11-07 09:17:20 +01:00
Mathias 41ca7ec669 Migrated the media.ts controller 2023-11-07 09:17:11 +01:00
Mathias f270bd9b76 Migrated the links.ts controller 2023-11-07 09:17:04 +01:00
Mathias d6476abc92 Migrated the session.ts route 2023-11-07 09:16:52 +01:00
Mathias 5ec0ee0bfb Migrated the media.ts route 2023-11-07 09:16:48 +01:00
Mathias 774fed90b8 Migrated the links.ts route 2023-11-07 09:16:42 +01:00
Mathias 51e7b2562d Migrated the authenticate.ts middleware 2023-11-07 09:16:33 +01:00
Mathias 0d83a0f670 Added new values to the envCheck.ts 2023-11-07 09:16:14 +01:00
Mathias 3224adf6c1 Updated the .env.example 2023-11-07 09:16:00 +01:00
Mathias 5cb47f6cd9 Started migrating to mariadb in the package.json 2023-11-07 09:14:57 +01:00
Mathias e414db9caa Fixed a bug in the media route 2022-09-09 16:00:01 +02:00
Mathias 99b6102847 Added deleteMedia to the media controller 2022-09-09 15:59:43 +02:00
Mathias 4afba19ee9 Created the DELETE /media/:id route to delete a file from the bucket & database 2022-09-09 15:59:13 +02:00
Mathias edf7f6c25a Added the getMediaById method to the media controller 2022-09-09 15:51:19 +02:00
Mathias fee00cc143 Created the GET /media/:id route to get a media object 2022-09-09 15:51:06 +02:00
Mathias a0585b6a73 Integrated the /media route into the api server 2022-09-09 15:43:51 +02:00
Mathias 4d084c3e23 Created the POST /media/upload route to upload media 2022-09-09 15:43:40 +02:00
Mathias 3a38ad2d36 Integrated a logic for the content delivery server 2022-09-09 15:42:15 +02:00
Mathias ea0027cac3 Added a default value for the assetEnding in the media controller 2022-09-09 15:41:11 +02:00
Mathias 55df6c907a Updated the media model 2022-09-09 15:40:55 +02:00
Mathias 7551d1a0cc Created the media controller 2022-09-09 15:23:30 +02:00
Mathias c057909643 Created the bucket controller to control the google storage bucket 2022-09-09 15:16:03 +02:00
Mathias 2fb459ff1c Added the @gcloud/storage & multer package to the package.json 2022-09-09 15:15:22 +02:00
Mathias f1a52d3c90 Integrated the new link controller into the shortener server 2022-09-09 15:14:51 +02:00
Mathias eb5e070fac Added getLinkObjectById to the link controller 2022-09-09 15:14:39 +02:00
Mathias a5498d3409 Migrated to the new link controller & updated the permissions of the routes 2022-09-09 15:14:25 +02:00
Mathias f018392067 Created the link controller 2022-09-09 15:06:17 +02:00
Mathias 1fdf9c84f6 Added the GCLOUD_STORAGE_BUCKET env variable to the envCheck.ts 2022-09-09 01:44:53 +02:00
Mathias e7b44746e8 Added GET /links/ to the links.ts router 2022-09-09 01:39:31 +02:00
Mathias b62a6d5f08 Fixed a bug in the Media & ShortenedLink model 2022-09-09 01:38:03 +02:00
Mathias e20bf72703 Added GET /link/:code to the links.ts router 2022-09-09 01:30:17 +02:00
Mathias 43e2f9553f Added DELETE /link/:code to the links.ts router 2022-09-09 01:26:29 +02:00
Mathias ed75a8ed49 Added the links router to the api server 2022-09-09 01:10:57 +02:00
Mathias c7a88c133b Created the links.ts router & created a route to insert a new link 2022-09-09 01:10:44 +02:00
Mathias adee79675c Implemented the code for the shortener 2022-09-09 01:09:11 +02:00
Mathias cb17c65dcc Changed the default value of the shortened id in the ShortenedLink.ts 2022-09-09 01:07:55 +02:00
Mathias a4e8b0b839 Created authenticate.ts#hasRank 2022-09-09 01:07:34 +02:00
Mathias 558e84ff7f Created the validation object for the link shortener 2022-09-09 01:07:09 +02:00
Mathias 1514edad54 Created the validation util 2022-09-09 01:06:54 +02:00
Mathias 0e04039c15 Added the joi dependency to the package.json 2022-09-09 01:06:34 +02:00
Mathias a02206781f Integrated the /session route into the api server 2022-09-08 23:55:33 +02:00
Mathias bc5c62a8b9 Created the /session route 2022-09-08 23:55:15 +02:00
Mathias 0555645573 Added the discord client id, secret & redirect uri as environment values to the envCheck util 2022-09-08 23:54:50 +02:00
Mathias 846ed71982 Created the discord controller 2022-09-08 23:54:23 +02:00
Mathias bb23b7ce01 Added the discord-oauth2 package to the package.json 2022-09-08 23:49:31 +02:00
Mathias 8c5a4a94a0 Removed the action socket from the backend -> Moving into another repo 2022-09-08 22:30:33 +02:00
Mathias 499a44cad7 Integrated the authentication middleware into the api server 2022-09-08 22:30:03 +02:00
Mathias 227ae68555 Created the authentication middleware 2022-09-08 22:29:38 +02:00
Mathias b8c8fa700b The cdn now only starts if the gbucket.json file has been provided 2022-09-08 22:21:51 +02:00
Mathias dfeb238469 Added the google authentication check into the envCheck util 2022-09-08 22:21:31 +02:00
Mathias 0d5834f53d Created the Media model 2022-09-08 22:09:49 +02:00
Mathias 5d192dc12a Created the ShortenedLink model 2022-09-08 22:08:59 +02:00
Mathias 0f623486ce Created the Token model 2022-09-08 22:08:06 +02:00
Mathias 63478822ba Created the User model 2022-09-08 22:04:32 +02:00
Mathias 363f373e97 Updated strictFunctionTypes -> false in tsconfig.json 2022-09-08 22:01:20 +02:00