Skip to content

Commit

Permalink
Add template and folder name to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
umluizlima committed Sep 20, 2020
1 parent cb99571 commit 592a8c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Settings(BaseSettings):
MAILJET_API_SECRET: SecretStr = "get_your_api_secret_from_mailjet_dashboard"
BROKER_URL: str = "amqp://rabbitmq:rabbitmq@localhost"
BROKER_POOL_LIMIT: Optional[int] = 1
TEMPLATES_FOLDER: str = "templates"

class Config:
env_file = ".env"
Expand Down
10 changes: 10 additions & 0 deletions templates/access_code.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ code }} is your access code</title>
</head>
<body>
<h1>{{ code }}</h1>
<p>Use the code above to validate your access.</p>
</body>
</html>

0 comments on commit 592a8c6

Please sign in to comment.