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