Skip to content

Commit a49f29b

Browse files
committed
Fix create route path in rest resource plugin
1 parent 90f6a87 commit a49f29b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/plugin/rest-resource/rest-resource.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
2121
* label = @Translation("{{ plugin_label }}"),
2222
* uri_paths = {
2323
* "canonical" = "/api/{{ plugin_id|u2h }}/{id}",
24-
* "https://www.drupal.org/link-relations/create" = "/api/{{ plugin_id|u2h }}"
24+
* "create" = "/api/{{ plugin_id|u2h }}"
2525
* }
2626
* )
2727
*

tests/dcg/Generator/Plugin/_rest_resource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* label = @Translation("Foo"),
2222
* uri_paths = {
2323
* "canonical" = "/api/example-foo/{id}",
24-
* "https://www.drupal.org/link-relations/create" = "/api/example-foo"
24+
* "create" = "/api/example-foo"
2525
* }
2626
* )
2727
*

0 commit comments

Comments
 (0)