public function importAction(Request $request)
    {
        if (!$request->files->has('redirectRoutes')) {
            return new JsonResponse(null, Response::HTTP_BAD_REQUEST);
        }

        /** @var UploadedFile $uploadedFile */
        $uploadedFile = $request->files->get('redirectRoutes');
        $file = $uploadedFile->move(
            $this->importPath,
            $uploadedFile->getClientOriginalName()
        );

        try {
            return new JsonResponse($this->importFile($file));
        } catch (ReaderNotFoundException $exception) {
            return new JsonResponse(null, Response::HTTP_BAD_REQUEST);
        } catch (ConverterNotFoundException $exception) {
            return new JsonResponse(null, Response::HTTP_BAD_REQUEST);
        }
    }