.MapGet("{Id:guid}/string", async (Guid Id, Service service) =>...
I had a typo here where the bracket was misplaced to the end of the string