Skip to content

Commit d1730e1

Browse files
committed
[up] bump to Simplify.Web v5.0
1 parent a3e4cc2 commit d1730e1

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

csharp/simplify.web/Controllers/HomeController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
namespace web.Controllers
55
{
66
[Get("/")]
7-
public class HomeController : Controller
7+
public class HomeController : Controller2
88
{
9-
public override ControllerResponse Invoke() => StatusCode(200);
9+
public ControllerResponse Invoke() => StatusCode(200);
1010
}
1111
}

csharp/simplify.web/Controllers/UserController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
namespace web.Controllers
55
{
66
[Post("/user")]
7-
public class UserController : Controller
7+
public class UserController : Controller2
88
{
9-
public override ControllerResponse Invoke() => StatusCode(200);
9+
public ControllerResponse Invoke() => StatusCode(200);
1010
}
1111
}

csharp/simplify.web/Controllers/UserIdController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
namespace web.Controllers
55
{
66
[Get("/user/{id}")]
7-
public class UserIdController : Controller
7+
public class UserIdController : Controller2
88
{
9-
public override ControllerResponse Invoke() => Content(RouteParameters.id);
9+
public ControllerResponse Invoke(string id) => Content(id);
1010
}
1111
}

csharp/simplify.web/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
var app = builder.Build();
88

9-
app.UseSimplifyWeb();
9+
app.UseSimplifyWeb(true);
1010

1111
app.Run();
1212

csharp/simplify.web/config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
framework:
22
website: web.simplifynet.dev
3-
version: 4.7
3+
version: 5.0

csharp/simplify.web/web.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<ImplicitUsings>enable</ImplicitUsings>
55
</PropertyGroup>
66
<ItemGroup>
7-
<PackageReference Include="Simplify.Web" Version="4.7.*" />
7+
<PackageReference Include="Simplify.Web" Version="5.0.*" />
88
</ItemGroup>
99
</Project>

0 commit comments

Comments
 (0)