Commit Graph
173 Commits
Author SHA1 Message Date
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
Laurin 510624cbc6 Removed Campaign, Link, Gender 2022-05-08 22:49:49 +02:00
Stephan 6c5fd27a73 Merge pull request #45 from detleph/feature-endpoints
Add more endpoints
2022-05-03 14:58:01 +02:00
Stephan 8384a3eebb Add controller for roleSchemas (unfinished)
+ Refine error messages for role schemas
+ Add role schema routes
+ Add RESULT_SCHEMA DataType
+ Add SchemaError.isSchemaError() type guard
2022-05-01 18:18:48 +02:00
Stephan 72ee918f00 Add schema valiation
+ Using zod for validation
+ Add SchemaError
2022-05-01 17:18:55 +02:00
Stephan 2034faa448 Add endpoint to delete disciplines 2022-05-01 16:09:10 +02:00
Stefan 382fd8b9ed Merge pull request #33 from detleph/feature-email-verification
Feature email verification Finished

ITS FINALY DONE
2022-04-29 12:24:29 +02:00
Stefan-5422 4ef5989c9a [create-pull-request] push formatted files 2022-04-29 12:23:23 +02:00
Stefan ac19d9bc67 Merge branch 'dev' into feature-email-verification 2022-04-29 11:40:28 +02:00
Stefan 48ac07a52b FIX: Formatting & Syntax error 2022-04-29 11:38:45 +02:00
Stephan 9bafdebd31 Add function to create disciplines
+ Fix async errors
+ Extract name error
2022-04-29 10:35:39 +02:00
Stephan 3c8cea8c71 Add routes for getting disciplines
+ Throwing an error still crashes the server
2022-04-29 10:35:38 +02:00
Stephan df9b47dbfd Add router to delete groups
+ Add route to delete organisations
2022-04-29 10:35:31 +02:00
Stephan 6fb09b9f31 HOTFIX: next() only called when in development mode
+ Push fix, now the server should be working again
2022-04-29 10:25:13 +02:00
Stephan 51c744de26 Add debugging code
+ Small fix in the event controller
+ Add development flag to the dev container
2022-04-28 14:39:16 +02:00
Stephan 09931c78da Add logger and remove unused code 2022-04-28 14:39:16 +02:00
Stephan 8bf18267d1 Fix: Add winston; And: Add custom error handlers
+ addCustomHandler()
+ removeCustomHandler()
2022-04-28 14:39:16 +02:00
Stephan 9ac4fb8efd Add logger to main
+ Remove whitespace
2022-04-28 14:39:16 +02:00
Stephan 9516b60d93 Add logger using winston
+ Add formats
+ Add debug and error log files
2022-04-28 14:39:16 +02:00
Stephan 382a42d439 Add basic error handling
+ Add express-async-errors package to handle async errors
+ Add ForwaradableError class (Base class for all project-specific errors)
+ Add defaultErrorHandler middleware which handles errors and sends info to the client
2022-04-28 14:39:16 +02:00
Stefan 1f867135f9 Merge branch 'dev' into feature-email-verification 2022-04-28 14:07:53 +02:00
Stephan d688a7db9c HOTFIX: Name of uuid function
The prisma schema didn't compile with the previous schema
2022-04-28 13:00:27 +02:00
Stephan f6d194f0c9 Fix: The server should always return 403 on failed login 2022-04-28 13:00:14 +02:00
Stefan-5422 32d4bdf3e0 Minor changes 2022-04-28 13:00:14 +02:00
Stefan-5422 dd956476d7 Minor changes
Fixed complaints for PR #30
2022-04-28 12:57:15 +02:00
Stefan-5422 f94f89e99e Update common.ts types because nagging. 2022-04-28 12:57:15 +02:00
Stefan-5422 269cc33a33 Update Event Endpoints to give better errors; 2022-04-28 12:57:15 +02:00
Laurin 293d2753eb Adding VisualElement (v.2.1) 2022-04-28 12:55:50 +02:00
Laurin 79e40e8369 updating Role model (v.2.0) 2022-04-28 12:49:07 +02:00
github-actions[bot]andStefan-5422 4a57f75997 [create-pull-request] push formatted files (#27)
Co-authored-by: Stefan-5422 <[email protected]>
2022-04-28 12:49:07 +02:00
Stefan-5422 035eb8771c Fix json parser return stack trace see Issue #24; 2022-04-28 12:49:07 +02:00
Stephan 5418d7b790 Refactor the endpoints to share common code 2022-04-28 12:49:07 +02:00
Stephan 0fb8a9ca73 Update the admin revision on password change
+ Update type of revision to DateTime
2022-04-28 12:49:07 +02:00
Stephan f3c165bbd7 Restructure the process of changing a password
+ Requests are now dispatched to the according user ressource, not the collection
+ The current user can be referenced by setting the pid to 'current'
+ Refactored the error logic
2022-04-28 12:49:07 +02:00
Stephan ff9d5b7912 Change the controller for changing passwords to use PIDs and not usernames 2022-04-28 12:49:07 +02:00
Stephan 94ce50aaf1 Add a controller and router to update a user's password
+ Add a function to update the password internally
+ The current interface could be improved (made more RESTful)
2022-04-28 12:49:07 +02:00