Skip to content

Commit

Permalink
fix: default route should be v4
Browse files Browse the repository at this point in the history
Signed-off-by: Akiff Manji <amanji@petridish.dev>
  • Loading branch information
amanji committed Apr 29, 2024
1 parent 0c05510 commit 38e6d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/api/resource.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default abstract class ApiResource {

protected formatEndpointUrl(path?: string): string {
let url = "/api";
if (this.baseVersion === "v2") {
if (this.baseVersion === "v4") {
url += `/${this.basePath}`;
} else {
url += `/${this.baseVersion}/${this.basePath}`;
Expand Down

0 comments on commit 38e6d8d

Please sign in to comment.