fix: make sure to use the same task path for all task routes
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
fa142b2f28
commit
0dc29aa8ae
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue