More changes for db migration
This commit is contained in:
parent
de0284e48a
commit
889dc02945
33 changed files with 740 additions and 100 deletions
|
@ -66,7 +66,7 @@ export class ProController {
|
|||
$scope.user = UserService.get();
|
||||
$scope.header = 'full';
|
||||
$scope.cancel = () => {
|
||||
$http.post('/pro/cancel').success(() => {
|
||||
$http.delete(window.settings.apiURL + '/user/pro').success(() => {
|
||||
window.location.reload(true);
|
||||
}).error((data) => {
|
||||
console.error(new Error(data));
|
||||
|
|
|
@ -69,7 +69,7 @@ export function stripeSubscribe($http) {
|
|||
key: window.settings.stripePublic,
|
||||
image: '/images/stripe-128.png',
|
||||
token: (token) => {
|
||||
$http.post('/pro/create', {
|
||||
$http.post(window.settings.apiURL + '/user/pro', {
|
||||
stripeToken: token,
|
||||
})
|
||||
.success((data) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue