mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Use asynchandler library for handlers
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { AsyncHandler } from 'asynchronous-handlers';
|
||||
import type { HttpRequest } from '../server/HttpRequest';
|
||||
import { AsyncHandler } from '../util/handlers/AsyncHandler';
|
||||
import type { Credentials } from './Credentials';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { UnionHandler } from '../util/handlers/UnionHandler';
|
||||
import { StatusUnionHandler } from '../util/handlers/StatusUnionHandler';
|
||||
import type { Credentials } from './Credentials';
|
||||
import type { CredentialsExtractor } from './CredentialsExtractor';
|
||||
|
||||
@@ -7,7 +7,7 @@ import type { CredentialsExtractor } from './CredentialsExtractor';
|
||||
* If multiple of these extractors return a value for the same key,
|
||||
* the last result will be used.
|
||||
*/
|
||||
export class UnionCredentialsExtractor extends UnionHandler<CredentialsExtractor> {
|
||||
export class UnionCredentialsExtractor extends StatusUnionHandler<CredentialsExtractor> {
|
||||
public constructor(extractors: CredentialsExtractor[]) {
|
||||
super(extractors);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user