mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-08-06 21:28:30 +02:00
Moved dev settings to flag
- Moved internal DEVELOPMENT_MODE flag to start parameters
This commit is contained in:
@@ -324,7 +324,7 @@ func initAPIs(targetMux *http.ServeMux) {
|
||||
|
||||
// Register the standard web services URLs
|
||||
var staticWebRes http.Handler
|
||||
if DEVELOPMENT_BUILD {
|
||||
if *development_build {
|
||||
staticWebRes = http.FileServer(http.Dir("web/"))
|
||||
} else {
|
||||
subFS, err := fs.Sub(webres, "web")
|
||||
|
Reference in New Issue
Block a user