Added folder and config path to templates

master
RuisPipe 2021-06-15 21:57:24 +02:00
parent f48be20aac
commit 47b20e6d52
1 changed files with 8 additions and 2 deletions

View File

@ -7,8 +7,9 @@ import (
var Cfg Config
type Config struct {
Server server
Mail mail
Server server
Mail mail
Templates templates
}
type server struct {
@ -25,6 +26,11 @@ type mail struct {
TemplatePath string
}
type templates struct {
FolderPath string
ConfigPath string
}
func LoadConfig() {
toml.DecodeFile("./config.toml", &Cfg)
}