Skip to content

Commit

Permalink
Fix a small naming conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
FinlayDaG33k committed Jul 28, 2023
1 parent 9f34dbc commit fe88e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webserver/routing/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { readerFromStreamReader } from "https://deno.land/std@0.126.0/io/mod.ts"
import { pathToRegexp } from "../pathToRegexp.ts";
import { Inflector } from "../../util/inflector.ts";
import { Logger } from "../../logging/logger.ts";
import { Request } from "../http/request.ts";
import { Request as ChompRequest } from "../http/request.ts";

interface Route {
path: string;
Expand Down Expand Up @@ -84,7 +84,7 @@ export class Router {
// Run our controller
try {
// Instantiate the controller
const controller = new Router._cache[args.route.controller][`${args.route.controller}Controller`](new Request(args));
const controller = new Router._cache[args.route.controller][`${args.route.controller}Controller`](new ChompRequest(args));

// Execute our action
await controller[args.route.action]();
Expand Down

0 comments on commit fe88e05

Please sign in to comment.