update login & status check
This commit is contained in:
+3
-2
@@ -3,7 +3,7 @@ from pydantic import BaseModel
|
|||||||
|
|
||||||
from database import fetch_all
|
from database import fetch_all
|
||||||
from events import create_event
|
from events import create_event
|
||||||
from auth import create_user
|
from auth import create_user, verify_user
|
||||||
|
|
||||||
class Login(BaseModel):
|
class Login(BaseModel):
|
||||||
username: str
|
username: str
|
||||||
@@ -37,7 +37,8 @@ app = FastAPI(
|
|||||||
def home():
|
def home():
|
||||||
return {
|
return {
|
||||||
"status": "online",
|
"status": "online",
|
||||||
"service": "Calendar API"
|
"service": "Calendar API",
|
||||||
|
"cheese": "tasty"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user