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
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
Stefan
c5e6568466
Merge branch 'main' into dev
2022-05-20 17:51:04 +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
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
Stephan
2eb9edee69
Only create default admin when in development mode
2022-05-16 15:38:22 +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-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
f6d194f0c9
Fix: The server should always return 403 on failed login
2022-04-28 13:00:14 +02:00