Skip to content

Commit

Permalink
feat(openapi): add get task info
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Mar 24, 2024
1 parent 52d292c commit 1859080
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/gopeed-openapi/src/v1/TaskController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ export class UsersController extends Controller {
return null as unknown as string;
}

/**
* Get task info
* @param id - Task id
* @returns
*/
@Security('X-Api-Token')
@Get('{id}')
public async getTask(@Path() id: string): Promise<Task> {
return null as unknown as Task;
}

/**
* Get task list
* @summary Get task list
Expand Down

0 comments on commit 1859080

Please sign in to comment.