Serve sculpt studio at /sculpt

Keep existing viewer URLs compatible and test embedded pages, assets, and isolation headers.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0b4b4-202c-73f1-984d-9a55c88f9c83
Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
Amp
2026-09-28 10:25:02 +00:00
co-authored by heaust
parent 347b676cf1
commit d930d8172f
4 changed files with 44 additions and 2 deletions
+2
View File
@@ -89,6 +89,8 @@ func (app *application) routes() http.Handler {
mux.HandleFunc("/playground/", app.servePlayground)
mux.HandleFunc("/view/gltf", app.servePage("gltf.html"))
mux.HandleFunc("/view/gltf/", app.servePage("gltf.html"))
mux.HandleFunc("/sculpt", app.servePage("assets/sculpt/index.html"))
mux.HandleFunc("/sculpt/", app.servePage("assets/sculpt/index.html"))
mux.HandleFunc("/view/sculpt", app.servePage("assets/sculpt/index.html"))
mux.HandleFunc("/view/sculpt/", app.servePage("assets/sculpt/index.html"))
mux.HandleFunc("/", app.serveHome)