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.
|
(WIP) Files, directories, profiles, and plugins will eventually be able to be uploaded to the server.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# upload a file or directory (recursively)</br>
|
# upload a file or directory (recursively)
|
||||||
makeshift upload
|
makeshift upload
|
||||||
makeshift upload --host http://localhost:5050 --path help.txt
|
makeshift upload --host http://localhost:5050 --path help.txt
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,6 @@ type Profile struct {
|
||||||
ID string `json:"id"` // profile ID
|
ID string `json:"id"` // profile ID
|
||||||
Description string `json:"description,omitempty"` // profile description
|
Description string `json:"description,omitempty"` // profile description
|
||||||
Tags []string `json:"tags,omitempty"` // tags used for ...
|
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
|
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.Get("/profile/{id}/data", s.GetProfileData())
|
||||||
router.Post("/profile/{id}/data", s.SetProfileData())
|
router.Post("/profile/{id}/data", s.SetProfileData())
|
||||||
router.Delete("/profile/{id}/data", s.DeleteProfileData())
|
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
|
// plugins
|
||||||
router.Get("/plugins", s.ListPlugins())
|
router.Get("/plugins", s.ListPlugins())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue