您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

routes.php 622B

123456789101112131415161718192021
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Application Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register all of the routes for an application.
  8. | It is a breeze. Simply tell Lumen the URIs it should respond to
  9. | and give it the Closure to call when that URI is requested.
  10. |
  11. */
  12. use Luticate\Utils\LuRoute;
  13. $route = LuRoute::getInstance();
  14. $route->addMiddleware('App\Http\Middleware\TokenMiddleware');
  15. $route->post("/commands/exec", "Commands", "exec");
  16. $route->post("/sensors/value", "Sensors", "getValue");