From 3ecd0fa2d4137488280581b6f6f1f317911e0859 Mon Sep 17 00:00:00 2001 From: Andrea Fazzi Date: Fri, 12 Nov 2021 10:18:22 +0100 Subject: [PATCH] Add comment --- backend/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/main.go b/backend/main.go index 273f80b..6c07ac0 100644 --- a/backend/main.go +++ b/backend/main.go @@ -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{