mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Split off ErrorResponseWriter
This commit is contained in:
@@ -3,12 +3,11 @@ import type { HttpHandler,
|
||||
import {
|
||||
AllowEverythingAuthorizer,
|
||||
AuthenticatedLdpHandler,
|
||||
BasicResponseWriter,
|
||||
MethodPermissionsExtractor,
|
||||
UnsecureWebIdExtractor,
|
||||
} from '../../index';
|
||||
import type { ServerConfig } from './ServerConfig';
|
||||
import { getOperationHandler, getInMemoryResourceStore, getBasicRequestParser } from './Util';
|
||||
import { getOperationHandler, getInMemoryResourceStore, getBasicRequestParser, getResponseWriter } from './Util';
|
||||
|
||||
/**
|
||||
* BasicConfig works with
|
||||
@@ -33,7 +32,7 @@ export class BasicConfig implements ServerConfig {
|
||||
|
||||
const operationHandler = getOperationHandler(this.store);
|
||||
|
||||
const responseWriter = new BasicResponseWriter();
|
||||
const responseWriter = getResponseWriter();
|
||||
|
||||
const handler = new AuthenticatedLdpHandler({
|
||||
requestParser,
|
||||
|
||||
Reference in New Issue
Block a user