mirror of
https://github.com/PhaseII-eAmusement-Network/PhaseWeb3-Vue.git
synced 2026-07-17 09:28:19 -05:00
2 lines
638 B
JavaScript
2 lines
638 B
JavaScript
import{u as o}from"./index.7cb2d8c1.js";const c=o();async function n(){try{return(await c.callApi("/admin")).data}catch(r){throw console.log("Error loading admin dashboard:",r),r}}async function e(r){try{return await c.callApi(`/arcade/checkName?name=${r}`)}catch(a){throw console.log("Error testing arcade:",a),a}}async function d(r){try{return(await c.callApi(`/arcade/checkPCBID?PCBID=${r}`)).unused}catch(a){throw console.log("Error testing machine:",a),a}}async function i(r){try{return await c.callApi("/admin/onboardArcade","POST",r)}catch(a){throw console.log("Error onboarding arcade:",a),a}}export{n as A,i as a,d as b,e as c};
|