Skip to content

Commit 0572135

Browse files
Fix Bug: route /ShortCode
1 parent 010a298 commit 0572135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SwiftLink.Presentation/Controllers/V1/LinkController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public async Task<IActionResult> Shorten([FromBody] GenerateShortCodeCommand com
1414
CancellationToken cancellationToken = default)
1515
=> OK(await MediatR.Send(command, cancellationToken));
1616

17-
[HttpGet, Route("{shortCode}")]
17+
[HttpGet, Route("/{shortCode}")]
1818
[HeaderExtraction]
1919
public async Task<IActionResult> Visit(string shortCode, [FromQuery] string password,
2020
CancellationToken cancellationToken = default)

0 commit comments

Comments
 (0)