Add comment
This commit is contained in:
parent
5b2b356ddd
commit
3ecd0fa2d4
1 changed files with 6 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue