Skip to content

Commit

Permalink
fix: api url path (chaynHQ#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
annarhughes authored Aug 19, 2024
1 parent 8ca8282 commit 950c3d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ See the the [Chayn Tech Wiki Guide](https://chayn.notion.site/Chayn-Tech-Contrib
```
# --- REQUIRED ---
NEXT_PUBLIC_ENV=local
NEXT_PUBLIC_API_URL=http://localhost:35001/api/v1/
NEXT_PUBLIC_API_URL=http://localhost:35001/api/v1
NEXT_PUBLIC_BASE_URL=http://localhost:3000
NEXT_PUBLIC_STORYBLOK_TOKEN= # provided in Chayn Tech Wiki Guide.
Expand Down
10 changes: 5 additions & 5 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Cypress.Commands.add('uiCreateAccessCode', () => {
Cypress.Commands.add('createAccessCode', (accessCode) => {
cy.getAccessToken().then((token) => {
return cy.request({
url: `${Cypress.env('NEXT_PUBLIC_API_URL')}partner-access`,
url: `${Cypress.env('NEXT_PUBLIC_API_URL')}/partner-access`,
method: 'POST',
headers: {
authorization: `Bearer ${token}`,
Expand All @@ -76,7 +76,7 @@ Cypress.Commands.add('deleteUser', () => {
if (email && email.indexOf('cypress') >= 0) {
cy.getAccessToken().then((token) => {
cy.request({
url: `${Cypress.env('NEXT_PUBLIC_API_URL')}user`,
url: `${Cypress.env('NEXT_PUBLIC_API_URL')}/user`,
method: 'DELETE',
headers: {
authorization: `Bearer ${token}`,
Expand All @@ -89,7 +89,7 @@ Cypress.Commands.add('deleteUser', () => {

Cypress.Commands.add('createUser', ({ codeInput, emailInput, passwordInput, partnerId }) => {
cy.request({
url: `${Cypress.env('NEXT_PUBLIC_API_URL')}user`,
url: `${Cypress.env('NEXT_PUBLIC_API_URL')}/user`,
method: 'POST',
body: {
partnerAccessCode: codeInput,
Expand All @@ -106,7 +106,7 @@ Cypress.Commands.add('createUser', ({ codeInput, emailInput, passwordInput, part
Cypress.Commands.add('deleteAllCypressUsers', () => {
cy.getAccessToken().then((token) => {
cy.request({
url: `${Cypress.env('NEXT_PUBLIC_API_URL')}user/cypress`,
url: `${Cypress.env('NEXT_PUBLIC_API_URL')}/user/cypress`,
method: 'DELETE',
headers: {
authorization: `Bearer ${token}`,
Expand All @@ -119,7 +119,7 @@ Cypress.Commands.add('deleteAllCypressUsers', () => {
Cypress.Commands.add('deleteCypressAccessCodes', () => {
cy.getAccessToken().then((token) => {
cy.request({
url: `${Cypress.env('NEXT_PUBLIC_API_URL')}partner-access/cypress`,
url: `${Cypress.env('NEXT_PUBLIC_API_URL')}/partner-access/cypress`,
method: 'DELETE',
headers: {
authorization: `Bearer ${token}`,
Expand Down

0 comments on commit 950c3d3

Please sign in to comment.