diff --git a/pkg/server/wizard.go b/pkg/server/wizard.go deleted file mode 100644 index 038677a9f..000000000 --- a/pkg/server/wizard.go +++ /dev/null @@ -1,70 +0,0 @@ -/* -Copyright 2012 The Perkeep Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package server - -import ( - "fmt" - "net/http" - - "go4.org/jsonconfig" - "perkeep.org/pkg/auth" - "perkeep.org/pkg/blobserver" -) - -// SetupHandler handles serving the wizard setup page. -type SetupHandler struct { - config jsonconfig.Obj -} - -func init() { - blobserver.RegisterHandlerConstructor("setup", newSetupFromConfig) -} - -func newSetupFromConfig(ld blobserver.Loader, conf jsonconfig.Obj) (h http.Handler, err error) { - wizard := &SetupHandler{config: conf} - return wizard, nil -} - -func (sh *SetupHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) { - if !auth.IsLocalhost(req) { - fmt.Fprintf(rw, - "Setup only allowed from localhost"+ - "

Back

"+ - "\n") - return - } - http.Redirect(rw, req, "https://perkeep.org/doc/server-config", http.StatusMovedPermanently) - return - - // TODO: this file and the code in wizard-html.go is outdated. Anyone interested enough - // can take care of updating it as something nicer which would fit better with the - // react UI. But in the meantime we don't link to it anymore. - - // if req.Method == "POST" { - // err := req.ParseMultipartForm(10e6) - // if err != nil { - // httputil.ServeError(rw, req, err) - // return - // } - // if len(req.Form) > 0 { - // handleSetupChange(rw, req) - // } - // return - // } - - // sendWizard(rw, req, false) -} diff --git a/pkg/serverinit/genconfig.go b/pkg/serverinit/genconfig.go index e62e3f1ae..c69f3c629 100644 --- a/pkg/serverinit/genconfig.go +++ b/pkg/serverinit/genconfig.go @@ -849,7 +849,6 @@ func (b *lowBuilder) genLowLevelPrefixes() error { }) } b.addPrefix("/", "root", rootArgs) - b.addPrefix("/setup/", "setup", nil) b.addPrefix("/status/", "status", nil) b.addPrefix("/help/", "help", nil) diff --git a/pkg/serverinit/serverinit_test.go b/pkg/serverinit/serverinit_test.go index d25a8f776..d397661f3 100644 --- a/pkg/serverinit/serverinit_test.go +++ b/pkg/serverinit/serverinit_test.go @@ -367,12 +367,6 @@ func TestInstallHandlers(t *testing.T) { authWrapped: true, }, - { - prefix: "/setup/", - handlerType: reflect.TypeOf(&server.SetupHandler{}), - prefixWrapped: true, - }, - { prefix: "/bs/camli/", handlerType: reflect.TypeOf(http.HandlerFunc(nil)), diff --git a/pkg/serverinit/testdata/b2_nolocaldisk-want.json b/pkg/serverinit/testdata/b2_nolocaldisk-want.json index 07bf25112..0d33b0749 100644 --- a/pkg/serverinit/testdata/b2_nolocaldisk-want.json +++ b/pkg/serverinit/testdata/b2_nolocaldisk-want.json @@ -78,9 +78,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -117,4 +114,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/baseurl-want.json b/pkg/serverinit/testdata/baseurl-want.json index ca4916828..e3622af7e 100644 --- a/pkg/serverinit/testdata/baseurl-want.json +++ b/pkg/serverinit/testdata/baseurl-want.json @@ -77,9 +77,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -120,4 +117,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/blobpacked_googlecloud-want.json b/pkg/serverinit/testdata/blobpacked_googlecloud-want.json index c2a7c5ec8..886345b4b 100644 --- a/pkg/serverinit/testdata/blobpacked_googlecloud-want.json +++ b/pkg/serverinit/testdata/blobpacked_googlecloud-want.json @@ -109,9 +109,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -158,4 +155,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/blobpacked_googlecloud_leveldb-want.json b/pkg/serverinit/testdata/blobpacked_googlecloud_leveldb-want.json index de72479a0..ca9bd087f 100644 --- a/pkg/serverinit/testdata/blobpacked_googlecloud_leveldb-want.json +++ b/pkg/serverinit/testdata/blobpacked_googlecloud_leveldb-want.json @@ -103,9 +103,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -142,4 +139,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/blobpacked_googlecloud_mysql-want.json b/pkg/serverinit/testdata/blobpacked_googlecloud_mysql-want.json index c2a7c5ec8..886345b4b 100644 --- a/pkg/serverinit/testdata/blobpacked_googlecloud_mysql-want.json +++ b/pkg/serverinit/testdata/blobpacked_googlecloud_mysql-want.json @@ -109,9 +109,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -158,4 +155,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/blobpacked_localdisk-want.json b/pkg/serverinit/testdata/blobpacked_localdisk-want.json index 45792fe7f..2fe14e740 100644 --- a/pkg/serverinit/testdata/blobpacked_localdisk-want.json +++ b/pkg/serverinit/testdata/blobpacked_localdisk-want.json @@ -93,9 +93,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -136,4 +133,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/default-want.json b/pkg/serverinit/testdata/default-want.json index d3804b199..8690a3dde 100644 --- a/pkg/serverinit/testdata/default-want.json +++ b/pkg/serverinit/testdata/default-want.json @@ -76,9 +76,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -119,4 +116,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/diskpacked-want.json b/pkg/serverinit/testdata/diskpacked-want.json index 7be8e68c0..4bc56b57f 100644 --- a/pkg/serverinit/testdata/diskpacked-want.json +++ b/pkg/serverinit/testdata/diskpacked-want.json @@ -84,9 +84,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -127,4 +124,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/flickr-want.json b/pkg/serverinit/testdata/flickr-want.json index eaa4c451a..772e5fb4e 100644 --- a/pkg/serverinit/testdata/flickr-want.json +++ b/pkg/serverinit/testdata/flickr-want.json @@ -80,9 +80,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -123,4 +120,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/google_nolocaldisk-want.json b/pkg/serverinit/testdata/google_nolocaldisk-want.json index 2095ac45d..af9108c51 100644 --- a/pkg/serverinit/testdata/google_nolocaldisk-want.json +++ b/pkg/serverinit/testdata/google_nolocaldisk-want.json @@ -80,9 +80,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -119,4 +116,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/google_nolocaldisk_subdir-want.json b/pkg/serverinit/testdata/google_nolocaldisk_subdir-want.json index 54e4952be..4f7c2c977 100644 --- a/pkg/serverinit/testdata/google_nolocaldisk_subdir-want.json +++ b/pkg/serverinit/testdata/google_nolocaldisk_subdir-want.json @@ -80,9 +80,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -119,4 +116,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/google_queues_on_db-want.json b/pkg/serverinit/testdata/google_queues_on_db-want.json index 2d8838aa9..b76acd0c3 100644 --- a/pkg/serverinit/testdata/google_queues_on_db-want.json +++ b/pkg/serverinit/testdata/google_queues_on_db-want.json @@ -83,9 +83,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -132,4 +129,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/google_service_account-want.json b/pkg/serverinit/testdata/google_service_account-want.json index 9b3b3f662..697368695 100644 --- a/pkg/serverinit/testdata/google_service_account-want.json +++ b/pkg/serverinit/testdata/google_service_account-want.json @@ -80,9 +80,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -119,4 +116,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/google_service_account_subdir-want.json b/pkg/serverinit/testdata/google_service_account_subdir-want.json index e8f33705a..476afbe39 100644 --- a/pkg/serverinit/testdata/google_service_account_subdir-want.json +++ b/pkg/serverinit/testdata/google_service_account_subdir-want.json @@ -80,9 +80,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -119,4 +116,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/gpg_fingerprint-want.json b/pkg/serverinit/testdata/gpg_fingerprint-want.json index d3804b199..8690a3dde 100644 --- a/pkg/serverinit/testdata/gpg_fingerprint-want.json +++ b/pkg/serverinit/testdata/gpg_fingerprint-want.json @@ -76,9 +76,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -119,4 +116,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/instapaper-want.json b/pkg/serverinit/testdata/instapaper-want.json index c4a5cc217..3a3f34368 100644 --- a/pkg/serverinit/testdata/instapaper-want.json +++ b/pkg/serverinit/testdata/instapaper-want.json @@ -80,9 +80,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -123,4 +120,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/justblobs-want.json b/pkg/serverinit/testdata/justblobs-want.json index 1eee67378..302c0601d 100644 --- a/pkg/serverinit/testdata/justblobs-want.json +++ b/pkg/serverinit/testdata/justblobs-want.json @@ -29,9 +29,6 @@ "/help/": { "handler": "help" }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -51,4 +48,4 @@ "handler": "status" } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/leveldb-want.json b/pkg/serverinit/testdata/leveldb-want.json index 1f18f42c0..43c8fd9d4 100644 --- a/pkg/serverinit/testdata/leveldb-want.json +++ b/pkg/serverinit/testdata/leveldb-want.json @@ -76,9 +76,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -119,4 +116,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/listenbase-want.json b/pkg/serverinit/testdata/listenbase-want.json index 0c8e996f6..1ee69f42a 100644 --- a/pkg/serverinit/testdata/listenbase-want.json +++ b/pkg/serverinit/testdata/listenbase-want.json @@ -76,9 +76,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -119,4 +116,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/mem-want.json b/pkg/serverinit/testdata/mem-want.json index fea63e416..05613c8a5 100644 --- a/pkg/serverinit/testdata/mem-want.json +++ b/pkg/serverinit/testdata/mem-want.json @@ -76,9 +76,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -182,4 +179,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/memindex-want.json b/pkg/serverinit/testdata/memindex-want.json index e069262b0..3bac0f9e0 100644 --- a/pkg/serverinit/testdata/memindex-want.json +++ b/pkg/serverinit/testdata/memindex-want.json @@ -75,9 +75,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -117,4 +114,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/memory_storage-want.json b/pkg/serverinit/testdata/memory_storage-want.json index bcaeb1adf..bede1b188 100644 --- a/pkg/serverinit/testdata/memory_storage-want.json +++ b/pkg/serverinit/testdata/memory_storage-want.json @@ -70,9 +70,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -108,4 +105,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/mongo-want.json b/pkg/serverinit/testdata/mongo-want.json index 6a8c446c6..c2a0bb0b8 100644 --- a/pkg/serverinit/testdata/mongo-want.json +++ b/pkg/serverinit/testdata/mongo-want.json @@ -79,9 +79,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -125,4 +122,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/multipublish-want.json b/pkg/serverinit/testdata/multipublish-want.json index 765ecfc9d..6e35e3ba7 100644 --- a/pkg/serverinit/testdata/multipublish-want.json +++ b/pkg/serverinit/testdata/multipublish-want.json @@ -103,9 +103,6 @@ "serverListen": "localhost:3179" } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -146,4 +143,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/nodbname_dbunique-want.json b/pkg/serverinit/testdata/nodbname_dbunique-want.json index c26fc9b2b..6c23be2b7 100644 --- a/pkg/serverinit/testdata/nodbname_dbunique-want.json +++ b/pkg/serverinit/testdata/nodbname_dbunique-want.json @@ -83,9 +83,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -132,4 +129,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/nodbname_identity-want.json b/pkg/serverinit/testdata/nodbname_identity-want.json index 00db9a49c..6ac2fb316 100644 --- a/pkg/serverinit/testdata/nodbname_identity-want.json +++ b/pkg/serverinit/testdata/nodbname_identity-want.json @@ -83,9 +83,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -132,4 +129,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/noindex_sorted-want.json b/pkg/serverinit/testdata/noindex_sorted-want.json index 5ec9ffbcc..9a5ab4924 100644 --- a/pkg/serverinit/testdata/noindex_sorted-want.json +++ b/pkg/serverinit/testdata/noindex_sorted-want.json @@ -47,9 +47,6 @@ "/help/": { "handler": "help" }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -69,4 +66,4 @@ "handler": "status" } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/packrelated_replicated-want.json b/pkg/serverinit/testdata/packrelated_replicated-want.json index 454feef28..543b487e9 100644 --- a/pkg/serverinit/testdata/packrelated_replicated-want.json +++ b/pkg/serverinit/testdata/packrelated_replicated-want.json @@ -92,9 +92,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -257,4 +254,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/proxy_with_gallery-want.json b/pkg/serverinit/testdata/proxy_with_gallery-want.json index 5a6680d55..5f7789715 100644 --- a/pkg/serverinit/testdata/proxy_with_gallery-want.json +++ b/pkg/serverinit/testdata/proxy_with_gallery-want.json @@ -93,9 +93,6 @@ "serverListen": ":3179" } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -136,4 +133,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/s3_alt_host-want.json b/pkg/serverinit/testdata/s3_alt_host-want.json index 2bc2afc51..ab340972c 100644 --- a/pkg/serverinit/testdata/s3_alt_host-want.json +++ b/pkg/serverinit/testdata/s3_alt_host-want.json @@ -78,9 +78,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -117,4 +114,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/s3_nolocaldisk-want.json b/pkg/serverinit/testdata/s3_nolocaldisk-want.json index b3a2c5e9c..7a821ebf7 100644 --- a/pkg/serverinit/testdata/s3_nolocaldisk-want.json +++ b/pkg/serverinit/testdata/s3_nolocaldisk-want.json @@ -77,9 +77,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -116,4 +113,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/s3_nolocaldisk_mysql-want.json b/pkg/serverinit/testdata/s3_nolocaldisk_mysql-want.json index 2252734dd..117860d57 100644 --- a/pkg/serverinit/testdata/s3_nolocaldisk_mysql-want.json +++ b/pkg/serverinit/testdata/s3_nolocaldisk_mysql-want.json @@ -80,9 +80,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -129,4 +126,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/s3_nolocaldisk_subdir-want.json b/pkg/serverinit/testdata/s3_nolocaldisk_subdir-want.json index 177e9450a..904233276 100644 --- a/pkg/serverinit/testdata/s3_nolocaldisk_subdir-want.json +++ b/pkg/serverinit/testdata/s3_nolocaldisk_subdir-want.json @@ -77,9 +77,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -116,4 +113,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/sqlite-want.json b/pkg/serverinit/testdata/sqlite-want.json index fcaad1bb3..3ac76ebe1 100644 --- a/pkg/serverinit/testdata/sqlite-want.json +++ b/pkg/serverinit/testdata/sqlite-want.json @@ -75,9 +75,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -118,4 +115,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/thumbcache_on_db-want.json b/pkg/serverinit/testdata/thumbcache_on_db-want.json index 2d8838aa9..b76acd0c3 100644 --- a/pkg/serverinit/testdata/thumbcache_on_db-want.json +++ b/pkg/serverinit/testdata/thumbcache_on_db-want.json @@ -83,9 +83,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -132,4 +129,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/tls-want.json b/pkg/serverinit/testdata/tls-want.json index 3860af875..0c28c0e01 100644 --- a/pkg/serverinit/testdata/tls-want.json +++ b/pkg/serverinit/testdata/tls-want.json @@ -92,9 +92,6 @@ "serverListen": "1.2.3.4:443" } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -135,4 +132,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/with_blog-want.json b/pkg/serverinit/testdata/with_blog-want.json index 95ff12c20..6ab41db89 100644 --- a/pkg/serverinit/testdata/with_blog-want.json +++ b/pkg/serverinit/testdata/with_blog-want.json @@ -89,9 +89,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -132,4 +129,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/with_gallery-want.json b/pkg/serverinit/testdata/with_gallery-want.json index d8b4475c8..41cbcf646 100644 --- a/pkg/serverinit/testdata/with_gallery-want.json +++ b/pkg/serverinit/testdata/with_gallery-want.json @@ -91,9 +91,6 @@ "serverListen": "localhost:3179" } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -134,4 +131,4 @@ } } } -} +} \ No newline at end of file diff --git a/pkg/serverinit/testdata/with_sourceroot-want.json b/pkg/serverinit/testdata/with_sourceroot-want.json index eacb10416..55059b067 100644 --- a/pkg/serverinit/testdata/with_sourceroot-want.json +++ b/pkg/serverinit/testdata/with_sourceroot-want.json @@ -75,9 +75,6 @@ "slurpToMemory": true } }, - "/setup/": { - "handler": "setup" - }, "/share/": { "handler": "share", "handlerArgs": { @@ -138,4 +135,4 @@ } } } -} +} \ No newline at end of file