Skip to content

Commit

Permalink
Add preliminary boom route
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace committed Mar 8, 2024
1 parent 0af6959 commit d950e10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/realm-server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ export class RealmServer {
}

private serveFromRealm = async (ctxt: Koa.Context, _next: Koa.Next) => {
if (ctxt.request.path === '/_boom') {
throw new Error('boom');
}

let realm = this.realms.find((r) => {
let reversedResolution = r.loader.reverseResolution(
fullRequestURL(ctxt).href,
Expand Down

0 comments on commit d950e10

Please sign in to comment.