addMiddleware('App\Http\Middleware\TokenMiddleware'); $route->post("/commands/exec", "Commands", "exec"); $route->post("/sensors/value", "Sensors", "getValue");