refactor: removed unused code and fix typo
This commit is contained in:
parent
cdc441344f
commit
b18746957d
3 changed files with 1 additions and 6 deletions
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue