diff --git a/dashboard/pages/admin/index.vue b/dashboard/pages/admin/index.vue index 057e860..11529f4 100644 --- a/dashboard/pages/admin/index.vue +++ b/dashboard/pages/admin/index.vue @@ -73,13 +73,25 @@ function onHideClicked() { isAdminHidden.value = true; } +const activeProject = useActiveProject(); + +async function payment() { + const res = await $fetch(`/api/pay/${activeProject.value?._id.toString()}/create`, { + ...signHeaders({ 'content-type': 'application/json' }), + method: 'POST', + body: JSON.stringify({ planId: 1 }) + }) + console.log(res); +} +