Skip to content

Commit

Permalink
add method prefix into weather
Browse files Browse the repository at this point in the history
  • Loading branch information
Yongguang Zhu authored and Yongguang Zhu committed Dec 24, 2020
1 parent 71e82b8 commit 4cc7cba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ServiceInvocation/Controllers/DaprController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public DaprController(ILogger<DaprController> logger)
_logger = logger;
}

[HttpGet("/weather")]
[HttpGet("/api/weather")]
public IEnumerable<WeatherForecast> GetWeather()
{
var rng = new Random();
Expand Down
4 changes: 2 additions & 2 deletions ServiceInvocation/sample.http
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// weather
###
GET http://localhost:13501/v1.0/invoke/dotnetapp/method/weather
GET http://localhost:13501/v1.0/invoke/dotnetapp/method/api/weather

###
GET http://localhost:5000/weather
GET http://localhost:5000/api/weather

// hello
###
Expand Down

0 comments on commit 4cc7cba

Please sign in to comment.