Stefan
c5e6568466
Merge branch 'main' into dev
2022-05-20 17:51:04 +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
3ec5f92429
Add controllers for 404 and the root endpoint
2022-05-17 16:16:26 +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
Stefan-5422
4ef5989c9a
[create-pull-request] push formatted files
2022-04-29 12:23:23 +02:00
Stephan
9bafdebd31
Add function to create disciplines
...
+ Fix async errors
+ Extract name error
2022-04-29 10:35:39 +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
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
Stephan
08419d581b
Update the admin revision on password change
...
+ Update type of revision to DateTime
2022-01-02 17:26:20 +01:00
Stephan
4fd8a4c978
Add reference to custom Request typings
2021-11-11 11:57:36 +01:00
Stephan
60f7c8fff5
Export requireAuthentication
2021-11-10 16:12:55 +01:00
Stephan
c869863aea
Add middleware to require authentication on an endpoint
2021-11-10 16:04:26 +01:00