refactor: added route impls and minor changes

This commit is contained in:
David Allen 2025-08-29 19:26:50 -06:00
parent dc6818e1e2
commit e2b400fb12
Signed by: towk
GPG key ID: 0430CDBE22619155
2 changed files with 14 additions and 2 deletions

View file

@ -185,6 +185,18 @@ func (s *Service) Upload() http.HandlerFunc {
}
}
func (s *Service) UploadPlugin() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
}
}
func (s *Service) UploadProfile() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
}
}
func (s *Service) List() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var (

View file

@ -100,8 +100,8 @@ func (s *Service) Serve() error {
// router.Handle("/download/*", http.StripPrefix("/download/", http.FileServer(http.Dir(s.PathForData()))))
router.Get("/download/*", s.Download())
router.Post("/upload/", s.Upload())
router.Post("/upload/plugin", s.Upload())
router.Post("/upload/profile", s.Upload())
router.Post("/upload/plugin", s.UploadPlugin())
router.Post("/upload/profile", s.UploadProfile())
router.Get("/list/*", s.List())
// profiles