auth google + jwt
This commit is contained in:
22
app/services/greeting_service.py
Normal file
22
app/services/greeting_service.py
Normal file
@@ -0,0 +1,22 @@
|
||||
"""Service for handling greeting-related business logic."""
|
||||
|
||||
|
||||
class GreetingService:
|
||||
"""Service for greeting operations."""
|
||||
|
||||
@staticmethod
|
||||
def get_greeting(name: str | None = None) -> dict[str, str]:
|
||||
"""Get a greeting message.
|
||||
|
||||
Args:
|
||||
name: Optional name to personalize the greeting
|
||||
|
||||
Returns:
|
||||
Dictionary containing the greeting message
|
||||
"""
|
||||
if name:
|
||||
message = f"Hello, {name}!"
|
||||
else:
|
||||
message = "Hello from backend!"
|
||||
|
||||
return {"message": message}
|
||||
Reference in New Issue
Block a user