getMultiGame method

  1. @Operation('count')
Future<Response> getMultiGame(
  1. @Bind('count') int count
)

Implementation

@Operation.get('count')
Future<Response> getMultiGame(@Bind.path('count') int count) async {
  if (count < 1) {
    return Response.badRequest(body: 'count must be positive');
  } else {
    final boards = await getBoards(17, count);
    return Response.ok({'boards': boards});
  }
}