fix: make sure to use the same task path for all task routes
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2023-04-06 11:36:21 +02:00
parent fa142b2f28
commit 0dc29aa8ae
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -1692,12 +1692,12 @@ func (t *Task) Delete(s *xorm.Session, a web.Auth) (err error) {
// @tags task
// @Accept json
// @Produce json
// @Param ID path int true "The task ID"
// @Param id path int true "The task ID"
// @Security JWTKeyAuth
// @Success 200 {object} models.Task "The task"
// @Failure 404 {object} models.Message "Task not found"
// @Failure 500 {object} models.Message "Internal error"
// @Router /tasks/{ID} [get]
// @Router /tasks/{id} [get]
func (t *Task) ReadOne(s *xorm.Session, a web.Auth) (err error) {
*t, err = GetTaskByIDSimple(s, t.ID)