Skip to content

Commit

Permalink
updated paths
Browse files Browse the repository at this point in the history
  • Loading branch information
nieuwsma committed Sep 2, 2023
1 parent 3e52294 commit 241331b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/api/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func RetrieveTrainingIDs(c *gin.Context) {
return
}

var response presentation.GetTrainingSessionID
var response presentation.GetTrainingSessionIDResponse
for k, _ := range trainingSessions {
response.TrainingSessionID = append(response.TrainingSessionID, k)
}
Expand Down
4 changes: 4 additions & 0 deletions pkg/presentation/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ type GetRulesResponse struct {
Colors logic.Colors `json:"Colors"`
}

type GetTrainingSessionIDResponse struct {
TrainingSessionID []string `json:"trainingSessions"`
}

type PostTrainingSessionRequest struct {
Types []string `json:"taskTypes"`
}
Expand Down
4 changes: 0 additions & 4 deletions pkg/presentation/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ type TrainingSessionTurn struct {
TaskViolations []string `json:"taskViolations"`
}

type GetTrainingSessionID struct {
TrainingSessionID []string `json:"trainingSessions"`
}

type CustomTime struct {
time.Time
}
Expand Down

0 comments on commit 241331b

Please sign in to comment.