Commit Graph
73 Commits
Author SHA1 Message Date
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
Mathias d307a0e3e8 Added the gbucket.json to the .gitignore 2022-09-07 21:26:45 +02:00
Mathias 391dec0026 Integrated the error middleware into the api.ts 2022-09-06 21:40:34 +02:00
Mathias 49bce43abe Created the error.ts middleware 2022-09-06 21:40:17 +02:00
Mathias d7949eabc3 Created the .env template file 2022-09-06 21:01:25 +02:00
Mathias f2aa6ad49f Added the shortener, cdn & action socket to the app.ts 2022-09-06 20:51:32 +02:00
Mathias 896b2a1aab Added the shortener, cdn and action socket port 2022-09-06 20:48:51 +02:00
Mathias 25d1c7b2d1 Added the action socket server 2022-09-06 20:14:12 +02:00
Mathias 383e81663d Refreshed the yarn.lock file 2022-09-06 20:13:51 +02:00
Mathias 260aaf9389 Added the ws dependency & the types of ws to the package.json 2022-09-06 20:13:23 +02:00
Mathias c6278410e6 Created the content delivery server/service 2022-09-06 20:05:33 +02:00
Mathias 97a3d218cf Created the shortener server/service 2022-09-06 20:03:33 +02:00
Mathias 7dcc6a58d7 Integrated the database into the app.ts & added the start method 2022-09-06 19:59:20 +02:00
Mathias 1aa963bdc9 Created the api server 2022-09-06 19:58:17 +02:00
Mathias 95f8bd7fff Added the default typescript configuration file 2022-09-06 19:56:30 +02:00
Mathias 4412c90db9 Added the express dependency & the express types to the package.json 2022-09-06 19:53:35 +02:00
Mathias 8fbf1fefa4 The app.ts now loads & checks the environment values on start 2022-09-06 18:31:08 +02:00
Mathias c582320cef Created the env check util 2022-09-06 18:30:15 +02:00
Mathias 322b95e2c4 Added the start & development script in the package.json 2022-09-06 18:29:22 +02:00
Mathias 20aa9fae2c Renamed the app.js -> app.ts 2022-09-06 18:28:47 +02:00
Mathias 0dfbea6fc4 Added the needed typescript dependencies 2022-09-06 18:28:06 +02:00
Mathias c2b0b8ab61 Added the dotenv & mongoose dependency to the package.json 2022-09-06 17:50:44 +02:00
Mathias ef00332877 Created the app.js 2022-09-06 17:43:59 +02:00
Mathias 4a714fcc4d Created the package.json & yarn.lock file 2022-09-06 17:43:52 +02:00
Mathias 06818789ce Added .vscode & .idea to the .gitignore 2022-09-06 17:43:12 +02:00