Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $app->post('/computes', function (Request $request, Response $response) {
- $compute = new MobiAuth\Controller\ComputeController($request->getHeaderLine("X-Auth-Jwt"));
- return $compute->createAction($request, $response);
- })->add(new MobiAuth\Middleware\JwtMiddleware())->add(new MobiAuth\Middleware\ValidateJsonSchemaMiddleware('CreateCompute'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement