route.php 798 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * This file is part of webman.
  4. *
  5. * Licensed under The MIT License
  6. * For full copyright and license information, please see the MIT-LICENSE.txt
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @author walkor<[email protected]>
  10. * @copyright walkor<[email protected]>
  11. * @link http://www.workerman.net/
  12. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  13. */
  14. use Webman\Route;
  15. Route::any('/json', 'app\controller\Index@json');
  16. Route::any('/plaintext', 'app\controller\Index@plaintext');
  17. Route::any('/fortunes', 'app\controller\Index@fortunes');
  18. Route::any('/db', 'app\controller\Index@db');
  19. Route::any('/queries[/[{q}]]', 'app\controller\Index@queries');
  20. Route::any('/updates[/[{q}]]', 'app\controller\Index@updates');