From 6bd47783325a2c1833f8017abc6aa459c4d82538 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 21 May 2023 13:42:53 +0200 Subject: export config members and pass the config to the client page template Add a boolean to check for the upload backend in the template. --- config.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'config.go') diff --git a/config.go b/config.go index ff56936..a74069d 100644 --- a/config.go +++ b/config.go @@ -1,7 +1,9 @@ package main type Config struct { - port int - backends string - localMusicDir string + Port int + Backends string + LocalMusicDir string + UploadDir string + HasUpload bool } -- cgit v1.2.3