Display frontend / backend version at the homescreen

This commit is contained in:
2020-10-11 11:13:06 +05:30
parent d677cfb1ea
commit 9ecf0b5cc9
10 changed files with 20 additions and 4 deletions

View File

@ -0,0 +1 @@
__version__ = "1.0.0"

View File

@ -15,6 +15,7 @@ from fastapi.responses import JSONResponse
from fastapi.security import OAuth2PasswordRequestForm
from sqlalchemy.orm import Session
from .. import __version__
from ..core.security import (
Token,
authenticate_user,
@ -85,6 +86,7 @@ async def login_for_access_token(
),
"userId": str(user.id),
"lockedOut": user.locked_out,
"ver": __version__.__version__,
},
expires_delta=access_token_expires,
)
@ -100,6 +102,7 @@ async def refresh_token(user: UserToken = Security(get_current_active_user)):
"scopes": user.permissions,
"userId": str(user.id_),
"lockedOut": user.locked_out,
"ver": __version__.__version__,
},
expires_delta=access_token_expires,
)

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "barker"
version = "0.1.0"
version = "1.0.0"
description = "Point of Sale for a restaurant"
authors = ["tanshu <git@tanshu.com>"]