Add standalone desktop workflow
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"jukebox_maker/internal/dialog"
|
||||
)
|
||||
|
||||
func (s *Server) handlePickFolder(w http.ResponseWriter, r *http.Request) {
|
||||
path, err := dialog.PickFolder()
|
||||
if err != nil {
|
||||
jsonErr(w, http.StatusUnprocessableEntity, err.Error())
|
||||
return
|
||||
}
|
||||
jsonOK(w, map[string]string{"path": path})
|
||||
}
|
||||
Reference in New Issue
Block a user