Skip to content

Commit

Permalink
refactor: do not lookup fake driver route
Browse files Browse the repository at this point in the history
  • Loading branch information
Harminder Virk authored and Harminder Virk committed Apr 12, 2022
1 parent fe9c2b5 commit e11ad5c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/Drivers/Fake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export class FakeDriver implements FakeDriverContract {
{
expiresIn,
qs,
disableRouteLookup: true,
}
)
}
Expand All @@ -167,10 +168,16 @@ export class FakeDriver implements FakeDriverContract {
* Returns a URL for a given location path
*/
public async getUrl(location: string): Promise<string> {
return this.router.makeUrl('/__drive_fake', {
disk: this.disk,
[LocalFileServer.filePathParamName]: [location],
})
return this.router.makeUrl(
'/__drive_fake',
{
disk: this.disk,
[LocalFileServer.filePathParamName]: [location],
},
{
disableRouteLookup: true,
}
)
}

/**
Expand Down

0 comments on commit e11ad5c

Please sign in to comment.