<?php
require __DIR__.'/_bootstrap.php';
use Zoo\Database;
use Zoo\Auth\PlayerAuthService;
use Zoo\Deposit\DepositService;

try{
    $db=Database::connect();
    (new PlayerAuthService($db))->authenticate([]);
    json_out(['ok'=>true,'methods'=>(new DepositService($db))->methods()]);
}catch(Throwable $e){
    json_out(['ok'=>false,'error'=>$e->getMessage()],401);
}
