18 lines
365 B
Python
18 lines
365 B
Python
from typing import Annotated
|
|
|
|
from fastapi import APIRouter, Depends
|
|
from sqlalchemy.ext.asyncio import AsyncSession
|
|
|
|
from core.models import db_helper
|
|
from core.schemas.ip import IpRead
|
|
|
|
|
|
router = APIRouter(
|
|
tags=["Ip"],
|
|
)
|
|
|
|
|
|
@router.get("", response_model=list[IpRead])
|
|
async def get_ip(session: AsyncSession = Depends(db_helper.session_dependency)):
|
|
pass
|