diff --git a/src/Actions/UniqElementsAction.php b/src/Actions/UniqElementsAction.php new file mode 100644 index 0000000000000000000000000000000000000000..3aa0e139f1779dcbe693c239f8b58a5ef0f3845d --- /dev/null +++ b/src/Actions/UniqElementsAction.php @@ -0,0 +1,16 @@ +act($request->serialise()), - 200 - ); + return new JsonResponse($action->act($request->serialise())); } } diff --git a/src/Controller/UniqElementsController.php b/src/Controller/UniqElementsController.php new file mode 100644 index 0000000000000000000000000000000000000000..442c9d706cd88d708688f9dc1a5ecb3260d812a1 --- /dev/null +++ b/src/Controller/UniqElementsController.php @@ -0,0 +1,19 @@ +act($request->serialise())); + } +} diff --git a/src/Requests/UniqElementsRequest.php b/src/Requests/UniqElementsRequest.php new file mode 100644 index 0000000000000000000000000000000000000000..111731374bbdde336e946a1623fdb42512fe8939 --- /dev/null +++ b/src/Requests/UniqElementsRequest.php @@ -0,0 +1,21 @@ +data; + } +} diff --git a/templates/uniq_elements/index.html.twig b/templates/uniq_elements/index.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..d56494b7519d691246e25955e4d51e8d7523b566 --- /dev/null +++ b/templates/uniq_elements/index.html.twig @@ -0,0 +1,20 @@ +{% extends 'base.html.twig' %} + +{% block title %}Hello UniqElementsController!{% endblock %} + +{% block body %} + + +
+

Hello {{ controller_name }}! ✅

+ + This friendly message is coming from: + +
+{% endblock %}