mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-08-08 06:08:30 +02:00
Added working plugin manager prototype
- Added experimental plugin UI proxy - Added plugin icon loader - Added plugin table renderer
This commit is contained in:
@@ -58,6 +58,19 @@ func FSHandler(handler http.Handler) http.Handler {
|
||||
return
|
||||
}
|
||||
|
||||
//For Plugin Routing
|
||||
if strings.HasPrefix(r.URL.Path, "/plugin.ui/") {
|
||||
//Extract the plugin ID from the request path
|
||||
parts := strings.Split(r.URL.Path, "/")
|
||||
if len(parts) > 2 {
|
||||
pluginID := parts[2]
|
||||
pluginManager.HandlePluginUI(pluginID, w, r)
|
||||
} else {
|
||||
http.Error(w, "Invalid Usage", http.StatusInternalServerError)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
//For WebSSH Routing
|
||||
//Example URL Path: /web.ssh/{{instance_uuid}}/*
|
||||
if strings.HasPrefix(r.URL.Path, "/web.ssh/") {
|
||||
|
Reference in New Issue
Block a user