Skip to content

Commit

Permalink
feat(MangaController): move download to new path
Browse files Browse the repository at this point in the history
  • Loading branch information
DevYukine committed Feb 16, 2024
1 parent 4043c89 commit b008c9a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 62 deletions.
2 changes: 1 addition & 1 deletion backend/MangaMagnet.Api/Controller/MangaController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task<IActionResult> GetAllAsync()
public async Task<IActionResult> GetSingleAsync([FromRoute] Guid id)
=> Ok(await mangaService.GetByIdAsync(id));

[HttpPost("{id:guid}/{chapterNumber:double}")]
[HttpPost("{id:guid}/{chapterNumber:double}/download")]
[MapToApiVersion("1.0")]
public async Task<IActionResult> DownloadSingleAsync([FromRoute] Guid id, double chapterNumber)
{
Expand Down
1 change: 0 additions & 1 deletion frontend/src/services/openapi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ export type { VolumeResponse } from './models/VolumeResponse';

export { MangaService } from './services/MangaService';
export { MetadataService } from './services/MetadataService';
export { TestService } from './services/TestService';
2 changes: 1 addition & 1 deletion frontend/src/services/openapi/services/MangaService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class MangaService {
): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/Manga/{id}/{chapterNumber}',
url: '/api/Manga/{id}/{chapterNumber}/download',
path: {
'id': id,
'chapterNumber': chapterNumber,
Expand Down
59 changes: 0 additions & 59 deletions frontend/src/services/openapi/services/TestService.ts

This file was deleted.

0 comments on commit b008c9a

Please sign in to comment.