User Auth Done
This commit is contained in:
27
backend/app/api/scanner.py
Normal file
27
backend/app/api/scanner.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from fastapi import APIRouter, Depends
|
||||
from app.api.auth import get_current_user
|
||||
from app.services.stock_engine import (
|
||||
get_scan, get_ribbon, get_smartmoney, get_trend, get_marketintel
|
||||
)
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
@router.get("/scan")
|
||||
def scan(current_user = Depends(get_current_user)):
|
||||
return get_scan()
|
||||
|
||||
@router.get("/ribbon")
|
||||
def ribbon(current_user = Depends(get_current_user)):
|
||||
return get_ribbon()
|
||||
|
||||
@router.get("/smartmoney")
|
||||
def smartmoney(current_user = Depends(get_current_user)):
|
||||
return get_smartmoney()
|
||||
|
||||
@router.get("/trend")
|
||||
def trend(current_user = Depends(get_current_user)):
|
||||
return get_trend()
|
||||
|
||||
@router.get("/marketintel")
|
||||
def marketintel(current_user = Depends(get_current_user)):
|
||||
return get_marketintel()
|
||||
Reference in New Issue
Block a user