from app import crud, models, schemas
from app.api import deps
from app.core.config import settings
from app.utils import auth
from app.core import tasks
from fastapi import APIRouter, Depends, HTTPException, Body, Query
from sqlalchemy.orm import Session
from fastapi_utils.cbv import cbv
from fastapi_utils.inferring_router import InferringRouter
from app.api.routes.base import BaseAuthCBV
from fastapi_utils.tasks import repeat_every
from app.db.session import DatabaseSession

router = InferringRouter()
router.include_router(plots.router,
                      prefix="/{server_id}/plots",
                      tags=["Plots"])
router.include_router(plot_queue.router,
                      prefix="/{server_id}/queues",
                      tags=["Plot Queue"])
router.include_router(directory.router,
                      prefix="/{server_id}/directory",
                      tags=["Server Directory"])


@cbv(router)
class ServerCBV(BaseAuthCBV):
    @router.get("/")
    def get_table(
        self,
        filtration: schemas.FilterData[models.Server] = Depends(
from fastapi_utils.inferring_router import InferringRouter
from . import views

router = InferringRouter()

router.include_router(views.router, prefix='/api', tags=['api'])