mirror of
https://github.com/niusmallnan/steve.git
synced 2025-09-04 14:45:19 +00:00
K-EXPLORER: support UIOffline for value injection
This commit is contained in:
@@ -7,6 +7,10 @@ import (
|
|||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
UIOffline = "dynamic"
|
||||||
|
)
|
||||||
|
|
||||||
func New(path string) http.Handler {
|
func New(path string) http.Handler {
|
||||||
vue := NewUIHandler(&Options{
|
vue := NewUIHandler(&Options{
|
||||||
Path: func() string {
|
Path: func() string {
|
||||||
@@ -15,6 +19,9 @@ func New(path string) http.Handler {
|
|||||||
}
|
}
|
||||||
return path
|
return path
|
||||||
},
|
},
|
||||||
|
Offline: func() string {
|
||||||
|
return UIOffline
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
router := mux.NewRouter()
|
router := mux.NewRouter()
|
||||||
|
Reference in New Issue
Block a user