Skip to content

Commit 0a2c193

Browse files
Merge pull request #1027 from inhogog2/main
Add configuration import and export
2 parents 683508b + e172f5a commit 0a2c193

15 files changed

+1346
-3
lines changed

api/restapi/configure_loxilb_rest_api.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ func configureAPI(api *operations.LoxilbRestAPIAPI) http.Handler {
248248
api.PostConfigCorsHandler = operations.PostConfigCorsHandlerFunc(handler.ConfigPostCors)
249249
api.DeleteConfigCorsCorsURLHandler = operations.DeleteConfigCorsCorsURLHandlerFunc(handler.ConfigDeleteCors)
250250

251+
// Configuration import and export
252+
api.GetConfigExportHandler = operations.GetConfigExportHandlerFunc(handler.ConfigGetExport)
253+
api.PostConfigImportHandler = operations.PostConfigImportHandlerFunc(handler.ConfigPostImport)
254+
251255
api.PreServerShutdown = func() {}
252256
api.ServerShutdown = func() {}
253257

api/restapi/doc.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/restapi/embedded_spec.go

Lines changed: 140 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)