From def56b5d2289bb37253d50d39e78c3e0983fa828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 27 Jun 2022 16:12:50 +0200 Subject: [PATCH] Serve the add-on via the web interface Serve the Blender add-on via the web interface, downloadable from `/flamenco-addon.zip`. --- cmd/flamenco-manager/main.go | 3 +++ web/app/src/App.vue | 1 + 2 files changed, 4 insertions(+) diff --git a/cmd/flamenco-manager/main.go b/cmd/flamenco-manager/main.go index bb09279a..6b90963f 100644 --- a/cmd/flamenco-manager/main.go +++ b/cmd/flamenco-manager/main.go @@ -303,6 +303,9 @@ func buildWebService( return c.Redirect(http.StatusTemporaryRedirect, "/app/") }) + // Serve the Blender add-on. It's contained in the static files of the webapp. + e.GET("/flamenco-addon.zip", echo.WrapHandler(webAppHandler)) + // Redirect / to the webapp. e.GET("/", func(c echo.Context) error { return c.Redirect(http.StatusTemporaryRedirect, "/app/") diff --git a/web/app/src/App.vue b/web/app/src/App.vue index e993fdaf..8d0dc867 100644 --- a/web/app/src/App.vue +++ b/web/app/src/App.vue @@ -17,6 +17,7 @@ version: {{ flamencoVersion }} + | API