Skip to content

Commit

Permalink
changed the url as requested
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Oct 21, 2024
1 parent 54697b1 commit 988c22d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/src/sources-sprites.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ If you want multiple colors, you will need to layer icons on top of each other.

The following APIs are available:

- `/sprite/sdf/<sprite_id>.json` for getting a sprite index as SDF and
- `/sprite/sdf/<sprite_id>.png` for getting sprite PNGs as SDF
- `/sdf_sprite/<sprite_id>.json` for getting a sprite index as SDF and
- `/sdf_sprite/<sprite_id>.png` for getting sprite PNGs as SDF

#### Combining Multiple Sprites

Expand Down
4 changes: 2 additions & 2 deletions martin/src/srv/sprites.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async fn get_sprite_png(
.body(sheet.encode_png().map_err(map_internal_error)?))
}

#[route("/sprite/sdf/{source_ids}.png", method = "GET", method = "HEAD")]
#[route("/sdf_sprite/{source_ids}.png", method = "GET", method = "HEAD")]
async fn get_sprite_sdf_png(
path: Path<SourceIDsRequest>,
sprites: Data<SpriteSources>,
Expand All @@ -47,7 +47,7 @@ async fn get_sprite_json(
}

#[route(
"/sprite/sdf/{source_ids}.json",
"/sdf_sprite/{source_ids}.json",
method = "GET",
method = "HEAD",
wrap = "middleware::Compress::default()"
Expand Down

0 comments on commit 988c22d

Please sign in to comment.