Add local register config endpoint

This commit is contained in:
winchen
2026-06-30 10:15:01 +07:00
parent 1cbc3c4cf0
commit 57af540f09
2 changed files with 36 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
header('Content-Type: application/json; charset=utf-8');
header('Cache-Control: no-store');
echo json_encode([
'code' => 0,
'message' => 'success',
'data' => [
'methods' => [
'phone' => true,
'email' => false,
'username' => false,
],
'mobile_real_verify' => false,
],
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
+18
View File
@@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
header('Content-Type: application/json; charset=utf-8');
header('Cache-Control: no-store');
echo json_encode([
'code' => 0,
'message' => 'success',
'data' => [
'methods' => [
'phone' => true,
'email' => false,
'username' => false,
],
'mobile_real_verify' => false,
],
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);