Commit Graph

25 Commits

Author SHA1 Message Date
Thea Schöbl
418ba67d15 Resolve "Transition to ESLint" 2022-06-27 14:40:09 +00:00
Frank Nagel
b42e911a11 feat: Add prometheus middleware to express
This enables collecting metrics from node.js and express.
2021-06-22 17:34:17 +02:00
openstappsbot
ff9fb49deb refactor: update all 2021-04-27 13:02:09 +02:00
Jovan Krunić
fe7dd09d7e refactor: parameterize configureApp function (inject db list)
Reason: easier testing (mocking) and better readability

Note: did additional refactoring
2021-04-27 13:02:03 +02:00
Jovan Krunić
3a7cc8d7c1 refactor: use express method to check request content type 2021-04-27 13:01:43 +02:00
Jovan Krunić
d3955b3cdd test: add tests for routes 2021-04-27 13:01:42 +02:00
Rainer Killinger
ce06e735be feat: utilize api-cli for e2e integration test 2021-04-27 13:01:39 +02:00
Rainer Killinger
bbbe4d5f1f refactor: update dependencies 2021-04-27 13:01:38 +02:00
Michel Jonathan Schmitz
6483221b62 feat: move up and enable cors 2021-04-27 13:01:37 +02:00
Wieland Schöbl
d917627d58 fix: make facets work again 2021-04-27 13:01:32 +02:00
Jovan Krunić
3d51ccfac2 feat: add functionality to register plugins via http
Also:

- Add functionality for serving the responses from plugins
- Add tests for related methods and routes

Closes #2, #37
2021-04-27 13:01:30 +02:00
Jovan Krunić
59ea7a5ba6 refactor: avoid automatic execution of app.ts
Move the execution of configureApp to CLI file

Related to #2
2021-04-27 13:01:29 +02:00
Jovan Krunić
8b457c9911 refactor: adjust code after updated dependencies
Closes #39
2021-04-27 13:01:26 +02:00
Wieland Schöbl
59e4009c5d refactor: use export global variables instead of express 2021-04-27 13:01:24 +02:00
Jovan Krunić
e17db521e2 fix: set config file before accessing it
Closes #27
2021-04-27 13:01:22 +02:00
Wieland Schöbl
d110d60123 feat: use config file for maxRequestBodySize
closes !20
2021-04-27 13:01:22 +02:00
Wieland Schöbl
eabd885cd4 docs: added some inline comments 2021-04-27 13:01:22 +02:00
Wieland Schöbl
e70e50a1ea fix: use SCRequestBodyTooLargeError
fixes #20
2021-04-27 13:01:21 +02:00
Wieland Schöbl
12b71ba1f1 fix: return syntax error when receiving bad json
Fixes #3
2021-04-27 13:01:21 +02:00
Wieland Schöbl
827827905b feat: use config for MultiSearchRoute 2021-04-27 13:01:20 +02:00
Anselm Stordeur
30082f8726 fix: wait for config file validation 2021-04-27 13:01:18 +02:00
Anselm Stordeur
90822f5888 fix: add prefix to schema names 2021-04-27 13:01:18 +02:00
Anselm Stordeur
6ceb763b5a build: update dependencies 2021-04-27 13:01:17 +02:00
Anselm Stordeur
98f02b8830 style: remove extraneous whitespace in imports 2021-04-27 13:01:16 +02:00
Anselm Stordeur
16bbb7e9e3 feat: add backend 2021-04-27 13:01:14 +02:00