Stefan-5422
93d77eeefa
Added user_auth system
...
+ 1 Mega commit yay
2022-05-28 17:14:33 +02:00
Stefan
c5e6568466
Merge branch 'main' into dev
2022-05-20 17:51:04 +02:00
Stephan
196604599b
FIX: **quickly** fix all errors in the media system
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
Stephan
2eb9edee69
Only create default admin when in development mode
2022-05-16 15:38:22 +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
3c8cea8c71
Add routes for getting disciplines
...
+ Throwing an error still crashes the server
2022-04-29 10:35:38 +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
9ac4fb8efd
Add logger to main
...
+ Remove whitespace
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
0c65aec96c
Add controller and routes for groups
2022-04-26 16:04:26 +02:00
Stephan
831017e7c2
Add routes for organisations
...
+ FIX: Change eventId type
2022-04-26 16:04:26 +02:00
github-actions[bot] and Stefan-5422
626ae40683
[create-pull-request] push formatted files ( #27 )
...
Co-authored-by: Stefan-5422 <[email protected] >
2022-03-20 17:37:51 +01:00
Stefan-5422
907c2c68fa
Fix json parser return stack trace see Issue #24 ;
2022-03-20 15:31:20 +01:00
Stephan
bfca7e8672
Add the permission_level 'ELEVATED' to the default user
2021-12-29 15:19:23 +01:00
Stephan
97fee47c6e
Allow for groups to be specified when POSTing /api/admins
...
+ Add the admin router to the global app
2021-12-29 15:19:22 +01:00
Stephan
3363039f79
Add code that ensures that an (admin) user is always present
2021-12-29 15:19:21 +01:00
Stephan
eb70a14c61
Add routes for admin authentication endpoints
...
+ Add router to the app
2021-12-29 15:19:10 +01:00
Stefan-5422
8d50c44b7e
Added tests for the event endpoints
...
Also installed chai, chai http & mocha
2021-10-18 13:14:13 +02:00
Stefan-5422
a966bfffd9
Added Event Endpoints; Dotenv; npm Scripts
...
+ GET /events/
+ POST /events/
2021-10-17 02:30:01 +02:00