Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

routes.php 559B

12345678910111213141516171819
  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->post("/commands/exec", "Commands", "exec");
  15. $route->post("/sensors/value", "Sensors", "getValue");