refactor: updated cmd and pkg implementations
This commit is contained in:
parent
d88ab2c01f
commit
fbed466c3d
10 changed files with 287 additions and 196 deletions
|
|
@ -98,15 +98,15 @@ func (s *Service) Serve() error {
|
|||
} else {
|
||||
// general
|
||||
router.Get("/download/*", s.Download())
|
||||
router.Post("/upload/", s.Upload())
|
||||
router.Post("/upload/plugin", s.UploadPlugin())
|
||||
router.Post("/upload/profile", s.UploadProfile())
|
||||
router.Post("/upload/*", s.Upload())
|
||||
router.Get("/list/*", s.List())
|
||||
router.Delete("/delete/*", s.Delete())
|
||||
|
||||
// profiles
|
||||
router.Get("/profiles", s.ListProfiles())
|
||||
router.Get("/profiles/{id}", s.GetProfile())
|
||||
router.Post("/profiles/{id}", s.CreateProfile())
|
||||
router.Delete("/profiles/{id}", s.DeleteProfile())
|
||||
router.Get("/profiles/{id}/data", s.GetProfileData())
|
||||
router.Post("/profiles/{id}/data", s.SetProfileData())
|
||||
router.Delete("/profiles/{id}/data", s.DeleteProfileData())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue