Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

routes.php 677B

12345678910111213141516171819202122
  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");
  17. $route->post("/cameras/image", "Cameras", "getImage");