refactor: removed unused code and fix typo

This commit is contained in:
David Allen 2025-08-29 17:58:16 -06:00
parent cdc441344f
commit b18746957d
Signed by: towk
GPG key ID: 0430CDBE22619155
3 changed files with 1 additions and 6 deletions

View file

@ -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)</br>
# upload a file or directory (recursively)
makeshift upload
makeshift upload --host http://localhost:5050 --path help.txt
```

View file

@ -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
}

View file

@ -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())