Added APIs for delete and get all documents

This commit is contained in:
Fabio Scotto di Santolo
2025-06-04 12:25:48 +02:00
parent eab9c25885
commit 32f31d44d2
4 changed files with 251 additions and 13 deletions

View File

@@ -3,8 +3,9 @@ package api
import "net/http"
var Routes = map[string]func(w http.ResponseWriter, r *http.Request){
"GET /": Hello,
"GET /file": GetFile,
"POST /file": LoadFile,
"DELETE /file": DeleteFile,
"GET /": Hello,
"GET /files": GetFiles,
"GET /file/{idFile}": GetFile,
"POST /file": LoadFile,
"DELETE /file/{idFile}": DeleteFile,
}