diff --git a/README.md b/README.md index 0b4fd4d..94d4e78 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ makeshift download -p templates --plugins smd,jinja2 --profile compute -xr (WIP) Files, directories, profiles, and plugins will eventually be able to be uploaded to the server. ```bash -# upload a file or directory (recursively)
+# upload a file or directory (recursively) makeshift upload makeshift upload --host http://localhost:5050 --path help.txt ``` diff --git a/pkg/models.go b/pkg/models.go index c101203..b17b6b2 100644 --- a/pkg/models.go +++ b/pkg/models.go @@ -7,8 +7,6 @@ type Profile struct { ID string `json:"id"` // profile ID Description string `json:"description,omitempty"` // profile description Tags []string `json:"tags,omitempty"` // tags used for ... - Paths []string `json:"paths,omitempty"` // paths to download - Plugins []string `json:"plugins,omitempty"` // plugins to run Data map[string]any `json:"data,omitempty"` // include render data } diff --git a/pkg/service/service.go b/pkg/service/service.go index 26d66ea..95f0c92 100644 --- a/pkg/service/service.go +++ b/pkg/service/service.go @@ -110,9 +110,6 @@ func (s *Service) Serve() error { router.Get("/profile/{id}/data", s.GetProfileData()) router.Post("/profile/{id}/data", s.SetProfileData()) router.Delete("/profile/{id}/data", s.DeleteProfileData()) - // router.Post("/profile/{id}/paths/{path}", s.CreateProfilePath()) - // router.Delete("/profile/{id}/paths/{path}", s.DeleteProfilePath()) - // router.Get("/profile/{id}/paths/{path}", s.GetProfilePath()) // plugins router.Get("/plugins", s.ListPlugins())