schema: add AppPath attr

This commit is contained in:
leo 2023-05-17 20:14:42 +02:00
parent 0ab0975ad5
commit 4ab5599784
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ
3 changed files with 8 additions and 3 deletions

@ -1,10 +1,10 @@
{ Schema = { Schema =
./schema.dhall ./schema.dhall
sha256:9158ba3afb08016d332df7e3c90a2578f0aaaa71744e1230301a60e97734f52d sha256:3f615a66aa32fc6c61a7ecfa42b809efcd42acbccf55ed7b0067bd11636debb2
? ./schema.dhall ? ./schema.dhall
, Schema/validate = , Schema/validate =
./validate.dhall ./validate.dhall
sha256:4be4456e23d9077cb43960293bbc44f2482273bf634865e0d739dbd0f8e6c8a1 sha256:b549161c382eab83cc2c0063bd0ac0472b51b78687e4aa36f686244cf4a0a1b1
? ./validate.dhall ? ./validate.dhall
, Schema/version = , Schema/version =
./version.dhall ./version.dhall

@ -32,6 +32,7 @@ let Schema =
} }
, LiveMode : Bool , LiveMode : Bool
, DevelMode : Bool , DevelMode : Bool
, AppPath : Text
, Session : , Session :
{ CookieName : Text { CookieName : Text
, CookieAuthSecret : Text , CookieAuthSecret : Text
@ -73,6 +74,10 @@ let Schema =
-- | in its bundled Embed.FS. -- | in its bundled Embed.FS.
False False
, DevelMode = False , DevelMode = False
, AppPath =
-- | AppPath specifies where the program looks for "assets" and
-- | "templates" in case LiveMode is True.
"."
, Session = , Session =
{ CookieName = "pcmt_session" { CookieName = "pcmt_session"
, CookieAuthSecret = "" , CookieAuthSecret = ""

@ -5,7 +5,7 @@ let Prelude =
let Schema = let Schema =
./schema.dhall ./schema.dhall
sha256:9158ba3afb08016d332df7e3c90a2578f0aaaa71744e1230301a60e97734f52d sha256:3f615a66aa32fc6c61a7ecfa42b809efcd42acbccf55ed7b0067bd11636debb2
? ./schema.dhall ? ./schema.dhall
let Schema/validate let Schema/validate