summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.go b/main.go
index 2223a4c..0556242 100644
--- a/main.go
+++ b/main.go
@@ -38,7 +38,13 @@ func serve(w http.ResponseWriter, token []byte, views ...string) {
if err != nil {
log.Fatal(err)
}
- if err := t.Execute(w, token != nil); err != nil {
+ if err := t.Execute(w, struct {
+ Token bool
+ ProxyPrefix string
+ }{
+ Token: token != nil,
+ ProxyPrefix: os.Getenv("BOX_PROXY_PREFIX"),
+ }); err != nil {
log.Fatal(err)
}
}