Skip to content

Add query parameter to link to a specific image within a drawing session #12

@Valefant

Description

@Valefant

When visiting e.g. http://localhost:3000/draw/cat we would always be starting at the first image.
If I would want to link to a different image I would need an indicator inside the link to determine the offset from the starting point.

Solution

We solve this by adding a query parameter named image which represents the offset from the starting point.

Example

http://localhost:3000/draw/cat?image=5 would show the fifth image in the cat category.

Conditions

  • image=1 should represent the first image
  • Given: images in drawing sesion n and the query parameter value x. Then the following invariant should hold x <= n

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions