mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 12:52:19 +01:00
scan router import fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import emoji
|
||||
import json
|
||||
from fastapi import APIRouter, status, HTTPException
|
||||
from fastapi import status, HTTPException
|
||||
|
||||
from logger.logger import log, COLORS
|
||||
from utils import fs, fastapi
|
||||
@@ -9,10 +9,7 @@ from handler import dbh
|
||||
from models.platform import Platform
|
||||
from models.rom import Rom
|
||||
|
||||
# router = APIRouter()
|
||||
|
||||
|
||||
# @router.get("/scan", status_code=200)
|
||||
async def scan(sid: str, platforms: str, complete_rescan: bool=True, sm=None):
|
||||
"""Scan platforms and roms and write them in database."""
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ app.add_middleware(
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
app.include_router(scan.router)
|
||||
app.include_router(search.router)
|
||||
app.include_router(platform.router)
|
||||
app.include_router(rom.router)
|
||||
|
||||
Reference in New Issue
Block a user