Skip to content

Commit e6f0efe

Browse files
Mecitlindyhopchris
authored andcommitted
Fix action name for single resource example
1 parent a6cbf5c commit e6f0efe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3.0/routing/custom-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ JsonApiRoute::server('v1')
304304
$relationships->hasOne('author')->readOnly();
305305
$relationships->hasMany('tags');
306306
})->actions('-actions', function (ActionRegistrar $actions) {
307-
$actions->withId()->post('purge');
307+
$actions->withId()->post('publish');
308308
});
309309

310310
// ...other resources

0 commit comments

Comments
 (0)