From 4ab55997846705813e30b81078a2ffbd5e994f08 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 17 May 2023 20:14:42 +0200 Subject: [PATCH] schema: add AppPath attr --- package.dhall | 4 ++-- schema.dhall | 5 +++++ validate.dhall | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package.dhall b/package.dhall index 97a2155..ba2685d 100644 --- a/package.dhall +++ b/package.dhall @@ -1,10 +1,10 @@ { Schema = ./schema.dhall - sha256:9158ba3afb08016d332df7e3c90a2578f0aaaa71744e1230301a60e97734f52d + sha256:3f615a66aa32fc6c61a7ecfa42b809efcd42acbccf55ed7b0067bd11636debb2 ? ./schema.dhall , Schema/validate = ./validate.dhall - sha256:4be4456e23d9077cb43960293bbc44f2482273bf634865e0d739dbd0f8e6c8a1 + sha256:b549161c382eab83cc2c0063bd0ac0472b51b78687e4aa36f686244cf4a0a1b1 ? ./validate.dhall , Schema/version = ./version.dhall diff --git a/schema.dhall b/schema.dhall index 3053f29..9dbbecc 100644 --- a/schema.dhall +++ b/schema.dhall @@ -32,6 +32,7 @@ let Schema = } , LiveMode : Bool , DevelMode : Bool + , AppPath : Text , Session : { CookieName : Text , CookieAuthSecret : Text @@ -73,6 +74,10 @@ let Schema = -- | in its bundled Embed.FS. False , DevelMode = False + , AppPath = + -- | AppPath specifies where the program looks for "assets" and + -- | "templates" in case LiveMode is True. + "." , Session = { CookieName = "pcmt_session" , CookieAuthSecret = "" diff --git a/validate.dhall b/validate.dhall index 8bae8fe..35b4983 100644 --- a/validate.dhall +++ b/validate.dhall @@ -5,7 +5,7 @@ let Prelude = let Schema = ./schema.dhall - sha256:9158ba3afb08016d332df7e3c90a2578f0aaaa71744e1230301a60e97734f52d + sha256:3f615a66aa32fc6c61a7ecfa42b809efcd42acbccf55ed7b0067bd11636debb2 ? ./schema.dhall let Schema/validate