mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update
This commit is contained in:
parent
2cfaeb2fb9
commit
2c408a2f56
18
app/Http/Controllers/Guest/CommController.php
Normal file
18
app/Http/Controllers/Guest/CommController.php
Normal 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')
|
||||||
|
]
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
@ -22,6 +22,8 @@ class GuestRoute
|
|||||||
$router->post('/telegram/webhook', 'Guest\\TelegramController@webhook');
|
$router->post('/telegram/webhook', 'Guest\\TelegramController@webhook');
|
||||||
// Payment
|
// Payment
|
||||||
$router->match(['get', 'post'], '/payment/notify/{method}/{id}', 'Guest\\PaymentController@notify');
|
$router->match(['get', 'post'], '/payment/notify/{method}/{id}', 'Guest\\PaymentController@notify');
|
||||||
|
// Comm
|
||||||
|
$router->get ('/comm/config', 'Guest\\CommController@config');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user