Skip to content
  • async def create_page_block(request: web.Request) -> web.Response:
        data: IOResult[dict, str] = \
            await FutureResult.from_value({"request": request}) \
                    .bind(retrieve_request_JSON) \
                    .bind(retrieve_page_by_json_key) \
                    .bind(create_block) \
                    .bind(extract_block_id) \
                    .awaitable()
        return web.json_response(format_block_creation_result(data))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment