GuestRoute.php 691 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Http\Routes;
  3. use Illuminate\Contracts\Routing\Registrar;
  4. class GuestRoute
  5. {
  6. public function map(Registrar $router)
  7. {
  8. $router->group([
  9. 'prefix' => 'guest'
  10. ], function ($router) {
  11. // Plan
  12. $router->get ('/plan/fetch', 'Guest\\PlanController@fetch');
  13. // Telegram
  14. $router->post('/telegram/webhook', 'Guest\\TelegramController@webhook');
  15. // Payment
  16. $router->match(['get', 'post'], '/payment/notify/{method}/{uuid}', 'Guest\\PaymentController@notify');
  17. // Comm
  18. $router->get ('/comm/config', 'Guest\\CommController@config');
  19. });
  20. }
  21. }