get cp paste file upload gogo via multipart form

This commit is contained in:
Bel LaPointe
2022-02-08 14:56:08 -07:00
parent 34b964e0bb
commit f24a8c2907
5 changed files with 99 additions and 16 deletions

View File

@@ -42,10 +42,15 @@ func TestServerRoutes(t *testing.T) {
method: http.MethodGet,
want: `["getfid"]`,
},
"v0: tree: get pretty": {
path: "/api/v0/tree?pretty",
method: http.MethodGet,
want: `{"delfid":{"Title":"delfid title","Children":[`,
},
"v0: tree: get": {
path: "/api/v0/tree",
method: http.MethodGet,
want: `{"delfid":{"Title":"delfid title",`,
want: `":{"Title":"getfid title",`,
},
"v0: media: post": {
path: "/api/v0/media",