Skip to content

Commit

Permalink
Updated Context Name
Browse files Browse the repository at this point in the history
  • Loading branch information
SellersEvan committed Apr 2, 2024
1 parent 21117a5 commit f1885d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions routes/[key]/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@


import { Response, Request } from "sherpa-core";
import { ContextSchema } from "../../sherpa.module";
import { Context } from "../../sherpa.module";


export function GET(req:Request, context:ContextSchema) {
export function GET(req:Request, context:Context) {
let key = req.params.path.get("key") as string;
if (context[key]) {
return Response.text(context[key].toString());
Expand Down
4 changes: 2 additions & 2 deletions routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@


import { Response, Request } from "sherpa-core";
import { ContextSchema } from "../sherpa.module";
import { Context } from "../sherpa.module";


export function GET(_:Request, context:ContextSchema) {
export function GET(_:Request, context:Context) {
return Response.JSON(context);
}

Expand Down

0 comments on commit f1885d4

Please sign in to comment.