Skip to content

Commit cf52b90

Browse files
committed
fix: update v1 and v2 custom action chapters with same fix
1 parent e6f0efe commit cf52b90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

1.0/routing/custom-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ JsonApiRoute::server('v1')
302302
$relationships->hasOne('author')->readOnly();
303303
$relationships->hasMany('tags');
304304
})->actions('-actions', function ($actions) {
305-
$actions->withId()->post('purge');
305+
$actions->withId()->post('publish');
306306
});
307307

308308
// ...other resources

2.0/routing/custom-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ JsonApiRoute::server('v1')
302302
$relationships->hasOne('author')->readOnly();
303303
$relationships->hasMany('tags');
304304
})->actions('-actions', function ($actions) {
305-
$actions->withId()->post('purge');
305+
$actions->withId()->post('publish');
306306
});
307307

308308
// ...other resources

0 commit comments

Comments
 (0)