diff --git a/debian/patches/0001-disable-swagger.patch b/debian/patches/0001-disable-swagger.patch index bdfb5a09..e3f73797 100644 --- a/debian/patches/0001-disable-swagger.patch +++ b/debian/patches/0001-disable-swagger.patch @@ -11,7 +11,9 @@ This can be enabled once the following modules make it into Debian: api/router.go | 22 +++++++++++----------- docs/index.go | 10 ---------- docs/index.go.disabled | 10 ++++++++++ - 3 files changed, 21 insertions(+), 21 deletions(-) + man/aptly.1 | 3 ++- + man/aptly.1.ronn.tmpl | 3 ++- + 5 files changed, 25 insertions(+), 23 deletions(-) delete mode 100644 docs/index.go create mode 100644 docs/index.go.disabled @@ -87,3 +89,33 @@ index 0000000..ca4c914 + +//go:embed docs.html +var DocsHTML []byte +diff --git a/man/aptly.1 b/man/aptly.1 +index bd6ad22..11ed990 100644 +--- a/man/aptly.1 ++++ b/man/aptly.1 +@@ -111,8 +111,9 @@ The legacy json configuration is still supported (and also supports comments): + // Enable metrics for Prometheus client + "enableMetricsEndpoint": false, + ++ // Not implemented in this version\. + // Enable API documentation on /docs +- "enableSwaggerEndpoint": false, ++ //"enableSwaggerEndpoint": false, + + // OBSOLETE: use via url param ?_async=true + "AsyncAPI": false, +diff --git a/man/aptly.1.ronn.tmpl b/man/aptly.1.ronn.tmpl +index 203cc7f..ed2c87c 100644 +--- a/man/aptly.1.ronn.tmpl ++++ b/man/aptly.1.ronn.tmpl +@@ -100,8 +100,9 @@ The legacy json configuration is still supported (and also supports comments): + // Enable metrics for Prometheus client + "enableMetricsEndpoint": false, + ++ // Not implemented in this version. + // Enable API documentation on /docs +- "enableSwaggerEndpoint": false, ++ //"enableSwaggerEndpoint": false, + + // OBSOLETE: use via url param ?_async=true + "AsyncAPI": false,