From ea11849632e1284abee9a7a8874493884637c051 Mon Sep 17 00:00:00 2001 From: Alexanderius Date: Fri, 8 Dec 2023 22:18:39 +0600 Subject: [PATCH] [#227] [add] test controller --- .../v1/DifferentRouteParametersController.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/SampleApps/SampleApp.Angular/Controllers/v1/DifferentRouteParametersController.cs diff --git a/src/SampleApps/SampleApp.Angular/Controllers/v1/DifferentRouteParametersController.cs b/src/SampleApps/SampleApp.Angular/Controllers/v1/DifferentRouteParametersController.cs new file mode 100644 index 00000000..7c5db157 --- /dev/null +++ b/src/SampleApps/SampleApp.Angular/Controllers/v1/DifferentRouteParametersController.cs @@ -0,0 +1,15 @@ +using SampleApp.Angular.Responses; +using Simplify.Web; +using Simplify.Web.Attributes; + +namespace SampleApp.Angular.Controllers.v1; + +[Get("api/v1/different-route-parameters/{StringParam}/{IntParam:int}/{BoolParam:bool}/{StringArrayParam:string[]}")] +public class DifferentRouteParametersController : Controllerv2 +{ + public ControllerResponse Invoke(string stringParam) => + new Json(new + { + StringParam = stringParam + }); +} \ No newline at end of file