Browse Source
Merge pull request #25408 from abpframework/fix/22300-blog-admin-move-route
Fix `BlogAdminController` route token for `MoveAllBlogPostsAsync`
pull/25409/head
Enis Necipoglu
4 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
15 deletions
-
modules/cms-kit/src/Volo.CmsKit.Admin.HttpApi.Client/ClientProxies/cms-kit-admin-generate-proxy.json
-
modules/cms-kit/src/Volo.CmsKit.Admin.HttpApi/Volo/CmsKit/Admin/Blogs/BlogAdminController.cs
|
|
|
@ -406,7 +406,7 @@ |
|
|
|
"uniqueName": "MoveAllBlogPostsAsyncByBlogIdAndAssignToBlogId", |
|
|
|
"name": "MoveAllBlogPostsAsync", |
|
|
|
"httpMethod": "PUT", |
|
|
|
"url": "api/cms-kit-admin/blogs/{id}/move-all-blog-posts", |
|
|
|
"url": "api/cms-kit-admin/blogs/{blogId}/move-all-blog-posts", |
|
|
|
"supportedVersions": [], |
|
|
|
"parametersOnMethod": [ |
|
|
|
{ |
|
|
|
@ -436,7 +436,7 @@ |
|
|
|
"isOptional": false, |
|
|
|
"defaultValue": null, |
|
|
|
"constraintTypes": null, |
|
|
|
"bindingSourceId": "ModelBinding", |
|
|
|
"bindingSourceId": "Path", |
|
|
|
"descriptorName": "" |
|
|
|
}, |
|
|
|
{ |
|
|
|
@ -450,18 +450,6 @@ |
|
|
|
"constraintTypes": null, |
|
|
|
"bindingSourceId": "Query", |
|
|
|
"descriptorName": "" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"nameOnMethod": "id", |
|
|
|
"name": "id", |
|
|
|
"jsonName": null, |
|
|
|
"type": null, |
|
|
|
"typeSimple": null, |
|
|
|
"isOptional": false, |
|
|
|
"defaultValue": null, |
|
|
|
"constraintTypes": [], |
|
|
|
"bindingSourceId": "Path", |
|
|
|
"descriptorName": "" |
|
|
|
} |
|
|
|
], |
|
|
|
"returnValue": { |
|
|
|
|
|
|
|
@ -71,7 +71,7 @@ public class BlogAdminController : CmsKitAdminController, IBlogAdminAppService |
|
|
|
} |
|
|
|
|
|
|
|
[HttpPut] |
|
|
|
[Route("{id}/move-all-blog-posts")] |
|
|
|
[Route("{blogId}/move-all-blog-posts")] |
|
|
|
[Authorize(CmsKitAdminPermissions.Blogs.Delete)] |
|
|
|
public Task MoveAllBlogPostsAsync(Guid blogId, [FromQuery]Guid? assignToBlogId) |
|
|
|
{ |
|
|
|
|