Commit Graph

  • 0ee140ad00 more bug fixes and add update to event Laurin 2022-05-17 16:18:22 +02:00
  • cb1eb1e317 bug fixes in Discipline, Roleschema, Event & Media Laurin 2022-05-17 10:09:27 +02:00
  • 75d416c62e Fix random number Laurin 2022-05-17 08:14:51 +02:00
  • bdfc15eab4 Add functionality to get media meta Stephan 2022-05-16 15:16:51 +02:00
  • c393508a06 Add functionality to add metadata to media Stephan 2022-05-16 15:15:58 +02:00
  • a16126a1db Fix media Stephan 2022-05-16 14:36:21 +02:00
  • f4288d7319 Fix dev.sh script (Now respects port) Stephan 2022-05-16 14:35:55 +02:00
  • b1c1e53a2d Add fulldescription Stephan 2022-05-15 12:07:07 +02:00
  • 734acbab38 Fix and comment code for linking media Stephan 2022-05-15 12:04:27 +02:00
  • 196604599b FIX: **quickly** fix all errors in the media system Stephan 2022-05-15 11:46:53 +02:00
  • bded472d05 Added basic implementation of media Laurin 2022-05-13 13:21:16 +02:00
  • 13d6f881ea Extract shared error code + Create new functions for generating errors Stephan 2022-01-03 23:00:48 +01:00
  • bb4f4babce Add controller and routes to upload images + Checks for valid image formats + Limits file size + Requires authentication + Disabled for now Stephan 2022-01-03 22:33:49 +01:00
  • 323fc396f7 Add express.static() to serve semi-static files + Should be user-updateable in the future Stephan 2022-01-03 15:52:23 +01:00
  • 3ec5f92429 Add controllers for 404 and the root endpoint Stephan 2022-05-17 16:16:26 +02:00
  • 645baf1f8a Add cors Stephan 2022-05-17 15:42:50 +02:00
  • 2eb9edee69 Only create default admin when in development mode Stephan 2022-05-16 15:38:22 +02:00
  • 510624cbc6 Removed Campaign, Link, Gender Laurin 2022-05-08 22:49:49 +02:00
  • b0537b797c Add functionality to load a backup feature-backup Stephan 2022-05-03 15:38:37 +02:00
  • 6c5fd27a73 Merge pull request #45 from detleph/feature-endpoints Stephan 2022-05-03 14:58:01 +02:00
  • 385377d169 Add function to backup and write the db into a JSON file Stephan 2022-05-03 14:55:44 +02:00
  • 8384a3eebb Add controller for roleSchemas (unfinished) Stephan 2022-05-01 18:18:48 +02:00
  • 72ee918f00 Add schema valiation Stephan 2022-05-01 17:18:55 +02:00
  • 2034faa448 Add endpoint to delete disciplines Stephan 2022-05-01 16:09:10 +02:00
  • 382fd8b9ed Merge pull request #33 from detleph/feature-email-verification Stefan 2022-04-29 12:24:29 +02:00
  • 4ef5989c9a [create-pull-request] push formatted files Stefan-5422 2022-04-29 10:23:02 +00:00
  • ac19d9bc67 Merge branch 'dev' into feature-email-verification Stefan 2022-04-29 11:40:28 +02:00
  • 48ac07a52b FIX: Formatting & Syntax error Stefan 2022-04-29 11:38:45 +02:00
  • 9bafdebd31 Add function to create disciplines Stephan 2022-04-29 10:08:50 +02:00
  • 3c8cea8c71 Add routes for getting disciplines Stephan 2022-04-28 16:14:48 +02:00
  • df9b47dbfd Add router to delete groups Stephan 2022-04-28 15:04:39 +02:00
  • 6fb09b9f31 HOTFIX: next() only called when in development mode Stephan 2022-04-29 10:25:13 +02:00
  • 51c744de26 Add debugging code Stephan 2022-04-28 14:35:15 +02:00
  • 09931c78da Add logger and remove unused code Stephan 2022-04-28 13:51:10 +02:00
  • 8bf18267d1 Fix: Add winston; And: Add custom error handlers Stephan 2022-04-28 12:04:36 +02:00
  • 9ac4fb8efd Add logger to main Stephan 2022-04-27 17:14:16 +02:00
  • 9516b60d93 Add logger using winston Stephan 2022-04-27 17:00:36 +02:00
  • 382a42d439 Add basic error handling Stephan 2022-04-27 15:30:55 +02:00
  • 1f867135f9 Merge branch 'dev' into feature-email-verification Stefan 2022-04-28 14:07:53 +02:00
  • d688a7db9c HOTFIX: Name of uuid function Stephan 2022-04-23 14:52:23 +02:00
  • f6d194f0c9 Fix: The server should always return 403 on failed login Stephan 2022-04-23 14:01:45 +02:00
  • 32d4bdf3e0 Minor changes Stefan-5422 2022-03-28 11:52:25 +02:00
  • dd956476d7 Minor changes Fixed complaints for PR #30 Stefan-5422 2022-03-22 07:37:21 +01:00
  • f94f89e99e Update common.ts types because nagging. Stefan-5422 2022-03-20 17:50:11 +01:00
  • 269cc33a33 Update Event Endpoints to give better errors; Stefan-5422 2022-03-20 17:29:25 +01:00
  • 293d2753eb Adding VisualElement (v.2.1) Laurin 2022-03-20 14:34:49 +01:00
  • 79e40e8369 updating Role model (v.2.0) Laurin 2022-03-13 02:34:20 +01:00
  • 4a57f75997 [create-pull-request] push formatted files (#27) github-actions[bot]andStefan-5422 2022-03-20 17:37:51 +01:00
  • 035eb8771c Fix json parser return stack trace see Issue #24; Stefan-5422 2022-03-20 15:31:20 +01:00
  • 5418d7b790 Refactor the endpoints to share common code Stephan 2022-01-02 17:36:21 +01:00
  • 0fb8a9ca73 Update the admin revision on password change + Update type of revision to DateTime Stephan 2022-01-02 17:26:20 +01:00
  • 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 Stephan 2022-01-02 16:49:01 +01:00
  • ff9d5b7912 Change the controller for changing passwords to use PIDs and not usernames Stephan 2022-01-02 15:46:47 +01:00
  • 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) Stephan 2021-12-31 00:11:04 +01:00
  • a2e314f036 Add the permission_level 'ELEVATED' to the default user Stephan 2021-12-21 16:16:29 +01:00
  • ed90f1e6ae Allow for groups to be specified when POSTing /api/admins Stephan 2021-12-21 12:19:17 +01:00
  • c0878d5614 Add code that ensures that an (admin) user is always present Stephan 2021-12-20 10:12:06 +01:00
  • dd3133c3f3 Add router for the /admin endpoint Stephan 2021-12-20 09:11:46 +01:00
  • 84db24fdb4 Add controller for adding a user Stephan 2021-12-20 09:06:05 +01:00
  • 79c5c3752c Extract code for error messages for better reusability Stephan 2021-12-20 08:48:04 +01:00
  • 579dc68d82 Remove event <-> admin association and introduce a default value for revision Stephan 2021-12-03 13:15:50 +01:00
  • fdfbd22daf Add a controller for getting all admin user details Stephan 2021-12-01 16:37:28 +01:00
  • 5e5b6bb60c Add routes for admin authentication endpoints Stephan 2021-11-30 11:12:43 +01:00
  • 22a959bcea FIX: The dev script can now run in any directory Stephan 2021-12-29 15:08:40 +01:00
  • 4a65dd4665 Add authorization Stephan 2022-04-28 12:46:26 +02:00
  • 6d471eced2 Add function for deleting events Stephan 2022-04-28 12:42:33 +02:00
  • 2936aa77f1 FIX: Event endpoints are now using the correct format Stephan 2022-04-28 12:36:02 +02:00
  • 9965acee40 Update name to organisation Stephan 2022-04-27 08:26:51 +02:00
  • 01077dab22 Change name from oragnisation to organisation Stephan 2022-04-27 08:24:34 +02:00
  • bff9dcc5f8 Extract function to create an object by name Stephan 2022-04-26 14:46:23 +02:00
  • fe6879ea56 Only show details when authenticated Stephan 2022-04-23 21:50:52 +02:00
  • 0c65aec96c Add controller and routes for groups Stephan 2022-04-23 21:28:47 +02:00
  • 8aa4e5ef16 Improve error handling and simplify code Stephan 2022-04-23 20:42:01 +02:00
  • ca11eba3d4 Add better error handling Stephan 2022-04-23 20:21:14 +02:00
  • 12034fa32a Add function to update an organisation Stephan 2022-04-23 20:10:23 +02:00
  • 831017e7c2 Add routes for organisations Stephan 2022-04-23 16:13:32 +02:00
  • 08e18db3c3 Extract common function to handle selecting organisations Stephan 2022-04-23 15:56:55 +02:00
  • ab62e39d8e Add function to create new organisations Stephan 2022-04-23 15:47:24 +02:00
  • 37437152da Add the organisation controller Stephan 2022-04-23 14:57:18 +02:00
  • dce75d1a97 Port yens dev script to detleph Stephan 2022-04-26 11:22:45 +02:00
  • 62a5daa432 Add Endpoint to verify email codes Stefan-5422 2022-04-25 08:56:45 +02:00
  • d2de4e9208 HOTFIX: Name of uuid function Stephan 2022-04-23 14:52:23 +02:00
  • d7e7694249 Fix: The server should always return 403 on failed login Stephan 2022-04-23 14:01:45 +02:00
  • 43bb7baa88 Minor changes Stefan-5422 2022-03-28 11:52:25 +02:00
  • 68b9044a9d Minor changes Fixed complaints for PR #30 Stefan-5422 2022-03-22 07:37:21 +01:00
  • 0f3b1ac707 Update common.ts types because nagging. Stefan-5422 2022-03-20 17:50:11 +01:00
  • cdacc56f7f Update Event Endpoints to give better errors; Stefan-5422 2022-03-20 17:29:25 +01:00
  • 9b8c6b18b7 Updated Media, Adding referential actions(v.2.2) Laurin 2022-03-20 17:14:34 +01:00
  • fe31a7fa34 Adding VisualElement (v.2.1) Laurin 2022-03-20 14:34:49 +01:00
  • c0ce7f32ca updating Role model (v.2.0) Laurin 2022-03-13 02:34:20 +01:00
  • 626ae40683 [create-pull-request] push formatted files (#27) github-actions[bot]andStefan-5422 2022-03-20 17:37:51 +01:00
  • 907c2c68fa Fix json parser return stack trace see Issue #24; Stefan-5422 2022-03-20 15:31:20 +01:00
  • c96537f5b4 Add handlebars; Stefan-5422 2022-03-20 14:58:27 +01:00
  • a84fcdce8f Fix fix bugs in the mail & mjml library files; Stefan-5422 2022-03-20 14:28:52 +01:00
  • 893f351e28 Update Dockerfile to include templates in the server; Stefan-5422 2022-03-20 14:28:01 +01:00
  • 1be42be4e5 Merge pull request #25 from detleph/feature-user-auth Stephan 2022-01-03 14:52:41 +01:00
  • 064497a4ca Refactor the endpoints to share common code Stephan 2022-01-02 17:36:21 +01:00
  • 08419d581b Update the admin revision on password change + Update type of revision to DateTime Stephan 2022-01-02 17:26:20 +01:00
  • 4d23eccba6 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 Stephan 2022-01-02 16:49:01 +01:00
  • cc1c394dce Change the controller for changing passwords to use PIDs and not usernames Stephan 2022-01-02 15:46:47 +01:00