Commit Graph

58 Commits

Author SHA1 Message Date
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
363f373e97 Updated strictFunctionTypes -> false in tsconfig.json 2022-09-08 22:01:20 +02:00
d307a0e3e8 Added the gbucket.json to the .gitignore 2022-09-07 21:26:45 +02:00
391dec0026 Integrated the error middleware into the api.ts 2022-09-06 21:40:34 +02:00
49bce43abe Created the error.ts middleware 2022-09-06 21:40:17 +02:00
d7949eabc3 Created the .env template file 2022-09-06 21:01:25 +02:00
f2aa6ad49f Added the shortener, cdn & action socket to the app.ts 2022-09-06 20:51:32 +02:00
896b2a1aab Added the shortener, cdn and action socket port 2022-09-06 20:48:51 +02:00
25d1c7b2d1 Added the action socket server 2022-09-06 20:14:12 +02:00
383e81663d Refreshed the yarn.lock file 2022-09-06 20:13:51 +02:00
260aaf9389 Added the ws dependency & the types of ws to the package.json 2022-09-06 20:13:23 +02:00
c6278410e6 Created the content delivery server/service 2022-09-06 20:05:33 +02:00
97a3d218cf Created the shortener server/service 2022-09-06 20:03:33 +02:00
7dcc6a58d7 Integrated the database into the app.ts & added the start method 2022-09-06 19:59:20 +02:00
1aa963bdc9 Created the api server 2022-09-06 19:58:17 +02:00
95f8bd7fff Added the default typescript configuration file 2022-09-06 19:56:30 +02:00
4412c90db9 Added the express dependency & the express types to the package.json 2022-09-06 19:53:35 +02:00
8fbf1fefa4 The app.ts now loads & checks the environment values on start 2022-09-06 18:31:08 +02:00
c582320cef Created the env check util 2022-09-06 18:30:15 +02:00