Skip to content

Commit 57fecce

Browse files
committed
fix: notes endpoint
1 parent 2a77680 commit 57fecce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/crash/crash-api-client/crash-api-client.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ describe('CrashApiClient', () => {
284284
});
285285

286286
it('should call fetch with correct route', () => {
287-
expect(apiClient.fetch).toHaveBeenCalledWith('/api/crash/notes.php', jasmine.anything());
287+
expect(apiClient.fetch).toHaveBeenCalledWith('/api/crash/notes', jasmine.anything());
288288
});
289289

290290
it('should call fetch with requestInit containing formData', () => {

src/crash/crash-api-client/crash-api-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class CrashApiClient {
144144
duplex: 'half',
145145
} as RequestInit;
146146

147-
return this._client.fetch('/api/crash/notes.php', request);
147+
return this._client.fetch('/api/crash/notes', request);
148148
}
149149

150150
async postStatus(

0 commit comments

Comments
 (0)