From 99302eb4f0d1b37542c052a8bbd3fe31ef35811f Mon Sep 17 00:00:00 2001 From: elraphty Date: Thu, 5 Oct 2023 19:42:57 +0100 Subject: [PATCH] renamed bounties to gobounties --- frontend/app/src/store/main.ts | 14 +++++++------- routes/index.go | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/app/src/store/main.ts b/frontend/app/src/store/main.ts index 3f4ac1459..21dea976a 100644 --- a/frontend/app/src/store/main.ts +++ b/frontend/app/src/store/main.ts @@ -739,7 +739,7 @@ export class MainStore { // if we don't pass the params, we should use previous params for invalidate query const query2 = this.appendQueryParams( - 'bounties/all', + 'gobounties/all', queryLimit, params ? queryParams : this.getWantedsPrevParams ); @@ -890,7 +890,7 @@ export class MainStore { async getBountyById(id: number): Promise { try { - const ps2 = await api.get(`bounties/id/${id}`); + const ps2 = await api.get(`gobounties/id/${id}`); const ps3: any[] = []; if (ps2 && ps2.length) { @@ -977,7 +977,7 @@ export class MainStore { async getBountyCount(personKey: string, tabType: string): Promise { try { - const count = await api.get(`bounties/count/${personKey}/${tabType}`); + const count = await api.get(`gobounties/count/${personKey}/${tabType}`); return count; } catch (e) { @@ -1327,7 +1327,7 @@ export class MainStore { } try { - const request = `bounties/${owner_pubkey}/${created}`; + const request = `gobounties/${owner_pubkey}/${created}`; //TODO: add some sort of authentication const response = await fetch(`${TribesURL}/${request}`, { method: 'DELETE', @@ -1619,7 +1619,7 @@ export class MainStore { try { if (!uiStore.meInfo) return null; const info = uiStore.meInfo; - const r: any = await fetch(`${TribesURL}/bounties/assignee`, { + const r: any = await fetch(`${TribesURL}/gobounties/assignee`, { method: 'DELETE', mode: 'cors', body: JSON.stringify({ @@ -1842,7 +1842,7 @@ export class MainStore { try { if (!uiStore.meInfo) return null; const info = uiStore.meInfo; - const r: any = await fetch(`${TribesURL}/bounties/paymentstatus/${created}`, { + const r: any = await fetch(`${TribesURL}/gobounties/paymentstatus/${created}`, { method: 'POST', mode: 'cors', headers: { @@ -1888,7 +1888,7 @@ export class MainStore { if (!uiStore.meInfo) return null; const info = uiStore.meInfo; - const r: any = await fetch(`${TribesURL}/bounties/pay/${body.id}`, { + const r: any = await fetch(`${TribesURL}/gobounties/pay/${body.id}`, { method: 'POST', mode: 'cors', body: JSON.stringify(body), diff --git a/routes/index.go b/routes/index.go index 62de4f949..05e3ea3d9 100644 --- a/routes/index.go +++ b/routes/index.go @@ -29,7 +29,7 @@ func NewRouter() *http.Server { r.Mount("/person", PersonRoutes()) r.Mount("/connectioncodes", ConnectionCodesRoutes()) r.Mount("/github_issue", GithubIssuesRoutes()) - r.Mount("/bounties", BountyRoutes()) + r.Mount("/gobounties", BountyRoutes()) r.Mount("/organizations", OrganizationRoutes()) r.Group(func(r chi.Router) {