Skip to content

Commit b519e58

Browse files
Simpler use of attribute routing
1 parent 11d4873 commit b519e58

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

templates/Angular2Spa/Controllers/SampleDataController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class SampleDataController : Controller
1414
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
1515
};
1616

17-
[HttpGet, Route("[action]")]
17+
[HttpGet("[action]")]
1818
public IEnumerable<WeatherForecast> WeatherForecasts()
1919
{
2020
var rng = new Random();

templates/KnockoutSpa/Controllers/SampleDataController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class SampleDataController : Controller
1414
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
1515
};
1616

17-
[HttpGet, Route("[action]")]
17+
[HttpGet("[action]")]
1818
public IEnumerable<WeatherForecast> WeatherForecasts()
1919
{
2020
var rng = new Random();

templates/ReactReduxSpa/Controllers/SampleDataController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class SampleDataController : Controller
1414
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
1515
};
1616

17-
[HttpGet, Route("[action]")]
17+
[HttpGet("[action]")]
1818
public IEnumerable<WeatherForecast> WeatherForecasts(int startDateIndex)
1919
{
2020
var rng = new Random();

templates/ReactSpa/Controllers/SampleDataController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class SampleDataController : Controller
1414
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
1515
};
1616

17-
[HttpGet, Route("[action]")]
17+
[HttpGet("[action]")]
1818
public IEnumerable<WeatherForecast> WeatherForecasts()
1919
{
2020
var rng = new Random();

0 commit comments

Comments
 (0)