24 Commits

Author SHA1 Message Date
Joachim Van Herwegen
fa1dee573e feat: Add required ACP headers 2022-10-06 09:36:04 +02:00
Jasper Vaneessen
2814e72b34
feat: Respect root path for static assets and HTML links
* feat: rootpath for static assets and links1

* fix: static asset handler respects root path

* fix: use rootPath for links

* tests: fix the tests after adding consuctor params

* feat: change matchregex instead of stored URLs

* feat: baseUrl for handlebar engine and templates

* feat: full baseUrl passed to templates

* test: fix integration tests + templates

* chore: implement requested changes

* docs: Describe TemplateEngine interface changes

Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
2022-05-24 10:20:41 +02:00
Wannes Kerckhove
283c301f08 feat: new helper functions to replace regexes #807
Implemented new StringUtil helper functions: splitCommaSeparated, sanitizeUrlPart, isValidFileName.
Added helper functions to HeaderUtil: matchesAuthorizationScheme, hasScheme.
Added unit tests for the new helper functions.
Refactored codebase to use helper functions instead of regexes if applicable.
2022-04-13 11:26:07 +02:00
Ruben Verborgh
2c6167e0cb feat: Remove meta parameter from logging. 2022-04-01 14:18:58 +02:00
Joachim Van Herwegen
ad3edcf1a8 feat: Handle OPTIONS requests in OperationHandler 2022-03-18 14:15:12 +01:00
Ruben Verborgh
1719857e4b change: Use @css: instead of $PACKAGE_ROOT/
This makes usage from the command line easier,
since $ is typically used to mark variables.
2021-08-03 13:19:38 +01:00
Ruben Verborgh
745eef798a feat: Cache static assets.
Closes https://github.com/solid/community-server/issues/861
2021-07-28 11:45:14 +02:00
Joachim Van Herwegen
e9917322e3 feat: Support $MODULE_PATH in StaticAssetHandler 2021-04-22 17:04:16 +02:00
Stijn Taelemans
9b6eab27bc refactor: upgraded @types/cors 2021-02-10 11:11:57 +01:00
Joachim Van Herwegen
73acb9cd52 fix: Prevent race condition in OPTIONS call 2021-02-05 17:18:45 +01:00
Ruben Verborgh
c899e6c4b1
fix: Do not re-encode static assets. (#566)
Fix serving binary static assets.
2021-01-28 22:02:32 +00:00
Ruben Verborgh
2563335403 feat: Support folders in StaticAssetHandler.
Closes https://github.com/solid/community-server/issues/548
2021-01-28 09:07:54 +01:00
Ruben Verborgh
394e28b69d change: Make header capitalization consistent. 2021-01-26 10:52:38 +01:00
Ruben Verborgh
75d0d4152a feat: Add placeholders for static assets to configuration. 2021-01-21 10:35:07 +01:00
Ruben Verborgh
5a12315554 feat: Add StaticAssetHandler. 2021-01-21 10:35:07 +01:00
Joachim Van Herwegen
ee50f40062 docs: Add comments referencing the Solid spec where relevant
Also some minor changes to completely match the spec there.
2021-01-15 08:42:36 +01:00
Matthieu Bosquet
a73936f522 refactor: Add HttpHandlerInput interface 2021-01-02 13:39:45 +01:00
Ruben Verborgh
eabe6bc4ed feat: Implement --baseUrl flag.
Closes https://github.com/solid/community-server/issues/372
2020-12-01 19:09:52 +01:00
Ruben Verborgh
961662b692 refactor: Components.js supports Record now. 2020-11-30 09:45:39 +01:00
Ruben Verborgh
6b4088723d fix: Add trailing slashes to advertised WebSocket URL. 2020-11-30 00:54:21 +01:00
Ruben Verborgh
fc3942b372 change: Move WebSocketAdvertiser to middleware. 2020-11-30 00:54:21 +01:00
Ruben Verborgh
8dec921c10 feat: Make CorsHandler customizable. 2020-11-30 00:44:19 +01:00
Ruben Verborgh
d6c0f89cf5 feat: Make HeaderHandler customizable. 2020-11-30 00:44:19 +01:00
Ruben Verborgh
023ff80f48 refactor: Separate middleware from Express. 2020-11-30 00:44:18 +01:00