Skip to content

Commit eca20b2

Browse files
committed
[add] string parameter controller
1 parent c1b1840 commit eca20b2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System.Net.Mime;
2+
using Simplify.Web;
3+
using Simplify.Web.Attributes;
4+
using Simplify.Web.Swagger;
5+
6+
namespace TesterApp.Controllers
7+
{
8+
[Get("string-display/{Str}")]
9+
[ProducesResponse(StatusCodes.Status200OK, MediaTypeNames.Text.Plain)]
10+
public class StringDisplayController : Controller
11+
{
12+
public override ControllerResponse Invoke() => Content("User string: " + RouteParameters.Str);
13+
}
14+
}

0 commit comments

Comments
 (0)