Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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");