Serve the add-on via the web interface

Serve the Blender add-on via the web interface, downloadable from
`/flamenco-addon.zip`.
This commit is contained in:
Sybren A. Stüvel 2022-06-27 16:12:50 +02:00
parent b021782ca0
commit def56b5d22
2 changed files with 4 additions and 0 deletions

View File

@ -303,6 +303,9 @@ func buildWebService(
return c.Redirect(http.StatusTemporaryRedirect, "/app/") 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. // Redirect / to the webapp.
e.GET("/", func(c echo.Context) error { e.GET("/", func(c echo.Context) error {
return c.Redirect(http.StatusTemporaryRedirect, "/app/") return c.Redirect(http.StatusTemporaryRedirect, "/app/")

View File

@ -17,6 +17,7 @@
<api-spinner /> <api-spinner />
<span class="app-version"> <span class="app-version">
version: {{ flamencoVersion }} version: {{ flamencoVersion }}
| <a href="/api/swagger-ui/">API</a>
</span> </span>
</header> </header>
<router-view></router-view> <router-view></router-view>