Add comment

This commit is contained in:
Andrea Fazzi 2021-11-12 10:18:22 +01:00
parent 5b2b356ddd
commit 3ecd0fa2d4

View file

@ -54,6 +54,12 @@ func data(c *gin.Context, id string) error {
return nil
}
// API outline
//
// POST /task content: url=https://foo.org start a new download task
// GET /task/:id get the status for the task
// GET /task/:id/download download the file resulted from the task execution
//
func main() {
r := gin.Default()
r.Use(cors.New(cors.Config{