Skip to content

Commit

Permalink
Drop beta in url (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
huaweigu authored Dec 8, 2022
1 parent 3259f53 commit c9e8b85
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ export default class DefaultLayoutsClass extends Vue {
to: '/debug/payments/create',
},
{
title: 'POST /beta/payments',
to: '/debug/beta/payments/create',
title: 'POST /payments/crypto',
to: '/debug/payments/crypto/create',
},
{
title: 'GET /payments/{id}',
Expand Down
4 changes: 2 additions & 2 deletions lib/beta/paymentsApi.ts → lib/cryptoPaymentsApi.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import get from 'lodash/get'
import axios from 'axios'

import { getAPIHostname } from '../apiTarget'
import { getAPIHostname } from './apiTarget'

interface ProtocolMetadata {
type: string
Expand Down Expand Up @@ -67,7 +67,7 @@ function getInstance() {
* @param {*} payload
*/
function createCryptoPayment(payload: CreateCryptoPaymentPayload) {
const url = '/v1/payments/beta'
const url = '/v1/payments/crypto'
return instance.post(url, payload)
}

Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default {
'~/plugins/businessAccount/payoutsApi',
'~/plugins/businessAccount/transfersApi',
'~/plugins/cryptoPaymentMetadataApi',
'~/plugins/beta/paymentsApi',
'~/plugins/cryptoPaymentsApi',
'~/plugins/beta/addressBookApi',
'~/plugins/checkoutSessionsApi',
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ import { mapGetters } from 'vuex'
import { v4 as uuidv4 } from 'uuid'
import RequestInfo from '@/components/RequestInfo.vue'
import ErrorSheet from '@/components/ErrorSheet.vue'
import { CreateCryptoPaymentPayload } from '~/lib/beta/paymentsApi'
import { CreateCryptoPaymentPayload } from '~/lib/cryptoPaymentsApi'
@Component({
components: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import paymentsApiBeta, {
CreateCryptoPaymentPayload,
} from '@/lib/beta/paymentsApi'
} from '@/lib/cryptoPaymentsApi'

declare module 'vue/types/vue' {
interface Vue {
Expand Down

0 comments on commit c9e8b85

Please sign in to comment.