259 Commits
Author SHA1 Message Date
Laurin 7dc9dd1558 adding team router/cont and participant router 2022-05-30 12:21:28 +02:00
Laurin ba1d09d181 media bugfixes 2022-05-29 21:08:40 +02:00
Laurin 1cb345c316 de-duplicated (un-)linkMedia 2022-05-29 17:19:45 +02:00
Stephan cd0cb00106 Add requireResponsibleForGroup
+ Update controllers
2022-05-29 14:47:32 +02:00
Stephan 197fd9c654 Improve validation and error handling
+ Check code and routes
+ Comment code
2022-05-29 13:25:11 +02:00
Stephan c41bbe9ab4 Add error handling and comment code 2022-05-29 12:58:28 +02:00
Stephan 7ae0c81bb8 Fix errors and improve error handling
+ Review code
+ Fix error with braces
2022-05-29 12:37:02 +02:00
Laurin 57671d72b8 added updateRoleScore 2022-05-29 03:35:12 +02:00
Laurin f560095731 updated register and createParticipant esp: job 2022-05-29 03:12:32 +02:00
Laurin 21deb2259a added deleteRoleSchema 2022-05-29 02:47:32 +02:00
Laurin 4fb9f2e496 added updateRoleSchema 2022-05-29 02:44:30 +02:00
Laurin e6cc0ab058 added updateGroup 2022-05-29 02:20:42 +02:00
Laurin e2afde59e1 added updateDiscipline 2022-05-29 02:02:17 +02:00
Laurin cb50e5ac2e small fixes 2022-05-29 01:35:57 +02:00
Laurin b1a0e8be7c added deleteParticipant 2022-05-29 01:14:47 +02:00
Laurin 4bec0d4b5e added updateParticipant 2022-05-29 01:02:13 +02:00
Laurin 0431406328 added createParticipant, patched DataType 2022-05-29 00:27:04 +02:00
Laurin 233182c0ea added getRolesForTeam to role.routes 2022-05-28 18:36:36 +02:00
Laurin 58235b301e added createRolesForTeam in register 2022-05-28 18:27:13 +02:00
Laurin da154f2f83 Merge branch 'feature-roles' of github.com:detleph/server into feature-roles 2022-05-28 17:56:09 +02:00
Stefan-5422 93d77eeefa Added user_auth system
+ 1 Mega commit yay
2022-05-28 17:14:33 +02:00
Laurin 55eab7000a add deleteRolesFromTeam 2022-05-28 16:52:35 +02:00
Laurin 4f94bf074c created Role controller/routes 2022-05-28 15:50:05 +02:00
Stephan 2a33b703bc Add methods for requiring more specific levels of teamleader auth
+ Add AuthError
2022-05-27 23:08:23 +02:00
Stephan a9c182cf64 Add teamleader authentication 2022-05-27 22:48:16 +02:00
Stephan 197d1a52a3 Add basic controllers and helper for roles
+ Directly link participants to teams for sake of query efficiency
2022-05-27 22:12:16 +02:00
Laurin cc57c51389 Added updateDiscipline 2022-05-24 18:50:30 +02:00
Laurin 4e77d3c66d Event zod add pid/id; rm comented MediaRouter 2022-05-22 12:48:37 +02:00
Stefan 9776f83a82 HOTFIX: Stuff broke 2022-05-20 18:02:45 +02:00
Stefan a6addcaf69 Merge pull request #53 from detleph/dev
Dev
2022-05-20 17:51:43 +02:00
Stefan c5e6568466 Merge branch 'main' into dev 2022-05-20 17:51:04 +02:00
Stefan f00a80242a Merge pull request #52 from detleph/prepare-release
Prepare release
2022-05-19 13:04:40 +02:00
Laurin 4555d46902 modified event responses and updated discipline briefDescription + fullDescription 2022-05-18 12:16:47 +02:00
Flexla54 4926f2659d [create-pull-request] push formatted files 2022-05-18 08:27:11 +02:00
Laurin 0ee140ad00 more bug fixes and add update to event 2022-05-18 08:27:11 +02:00
Laurin cb1eb1e317 bug fixes in Discipline, Roleschema, Event & Media 2022-05-18 08:27:11 +02:00
Laurin 75d416c62e Fix random number 2022-05-18 08:27:11 +02:00
Stephan bdfc15eab4 Add functionality to get media meta
+ Remove unused code
+ Fix misspelling
+ Fix error handling to handle errors with no status code
2022-05-18 08:27:11 +02:00
Stephan c393508a06 Add functionality to add metadata to media 2022-05-18 08:27:11 +02:00
Stephan a16126a1db Fix media
+ Create media directory on dev start
+ Create media file on POST
2022-05-18 08:27:11 +02:00
Stephan f4288d7319 Fix dev.sh script (Now respects port) 2022-05-18 08:27:11 +02:00
Stephan b1c1e53a2d Add fulldescription 2022-05-18 08:27:11 +02:00
Stephan 734acbab38 Fix and comment code for linking media 2022-05-18 08:27:11 +02:00
Stephan 196604599b FIX: **quickly** fix all errors in the media system 2022-05-18 08:27:11 +02:00
Laurin bded472d05 Added basic implementation of media 2022-05-18 08:27:11 +02:00
Stephan 13d6f881ea Extract shared error code
+ Create new functions for generating errors
2022-05-18 08:27:11 +02:00
Stephan bb4f4babce Add controller and routes to upload images
+ Checks for valid image formats
+ Limits file size
+ Requires authentication
+ Disabled for now
2022-05-18 08:27:11 +02:00
Stephan 323fc396f7 Add express.static() to serve semi-static files
+ Should be user-updateable in the future
2022-05-18 08:27:11 +02:00
Stephan 3ec5f92429 Add controllers for 404 and the root endpoint 2022-05-17 16:16:26 +02:00
Stephan 645baf1f8a Add cors 2022-05-17 15:42:50 +02:00