This commit is contained in:
tokumeikoi 2021-05-07 00:15:30 +09:00
parent 2cfaeb2fb9
commit 2c408a2f56
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers\Guest;
use App\Utils\Dict;
use App\Http\Controllers\Controller;
class CommController extends Controller
{
public function config()
{
return response([
'data' => [
'tos_url' => config('v2board.tos_url')
]
]);
}
}

View File

@ -22,6 +22,8 @@ class GuestRoute
$router->post('/telegram/webhook', 'Guest\\TelegramController@webhook');
// Payment
$router->match(['get', 'post'], '/payment/notify/{method}/{id}', 'Guest\\PaymentController@notify');
// Comm
$router->get ('/comm/config', 'Guest\\CommController@config');
});
}
}