Skip to content

Avoid double parse of JSON payload #14

@fdocr

Description

@fdocr

There's a BattleSnake::Context.from_json(env.params.json.to_json) on each endpoint. The .json._to_json could be avoided by passing in the string parameter directly instead of using the Kemal parsed ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions