Skip to content

Commit

Permalink
export api and route class (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
HomelessDinosaur authored Mar 6, 2023
2 parents 7ae72ee + 2a7eda9 commit f5fa80b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resources/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ interface RouteOpts {
middleware?: HttpMiddleware[] | HttpMiddleware;
}

class Route<SecurityDefs extends string> {
export class Route<SecurityDefs extends string> {
public readonly api: Api<SecurityDefs>;
public readonly path: string;
public readonly middleware: HttpMiddleware[];
Expand Down Expand Up @@ -237,7 +237,7 @@ interface ApiDetails {
*
* Represents an HTTP API, capable of routing and securing incoming HTTP requests to handlers.
*/
class Api<SecurityDefs extends string> extends Base<ApiDetails> {
export class Api<SecurityDefs extends string> extends Base<ApiDetails> {
// public readonly name: string;
public readonly path: string;
public readonly middleware?: HttpMiddleware[];
Expand Down

0 comments on commit f5fa80b

Please sign in to comment.