Added api endpoints and tests

This commit is contained in:
2022-01-24 12:59:43 +01:00
parent 10b768743b
commit cfbdcc7f82
36 changed files with 1781 additions and 315 deletions

View File

@@ -10,6 +10,8 @@ var (
ServerPort string
Prefix string
DatabaseFile string
ArticleTemplate string
FrontendDir string
@@ -22,6 +24,8 @@ func init() {
ServerPort = os.Getenv("SERVER_PORT")
Prefix = os.Getenv("PREFIX")
DatabaseFile = os.Getenv("DATABASE_FILE")
ArticleTemplate = os.Getenv("ARTICLE_TEMPLATE")
FrontendDir = os.Getenv("FRONTEND_DIR")