Skip to content

Commit 468a7b0

Browse files
committed
Merge pull request #22 from Tonkpils/submission-response
return submission/:id url
2 parents 482be82 + f179efc commit 468a7b0

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ var FetchEndpoints = map[string]string{
1717
}
1818

1919
type submitResponse struct {
20+
Id string
2021
Status string
2122
Language string
2223
Exercise string

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ func main() {
185185
return
186186
}
187187

188-
fmt.Printf("For feedback on your submission visit %s%s.\n",
189-
config.Hostname, response.SubmissionPath)
188+
fmt.Printf("For feedback on your submission visit %s%s%s.\n",
189+
config.Hostname, "/submissions/", response.Id)
190190

191191
},
192192
},

0 commit comments

Comments
 (0)