feat: Use asynchandler library for handlers

This commit is contained in:
Joachim Van Herwegen
2024-09-05 11:08:43 +02:00
parent 7c98751aa2
commit b9616b3d89
186 changed files with 944 additions and 1590 deletions

View File

@@ -1,9 +1,12 @@
{
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^7.0.0/components/context.jsonld",
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^7.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/asynchronous-handlers/^1.0.0/components/context.jsonld"
],
"@graph": [
{
"@id": "urn:solid-server:default:OperationHandler",
"@type": "WaterfallHandler",
"@type": "StatusWaterfallHandler",
"handlers": [
{
"@type": "GetOperationHandler",
@@ -34,7 +37,11 @@
},
{
"@type": "StaticThrowHandler",
"error": { "@type": "MethodNotAllowedHttpError" }
"onlyHandle": true,
"factory": {
"@type": "ClassErrorFactory",
"error": { "@type": "MethodNotAllowedHttpError" }
}
}
]
}