more stuff for docs

This commit is contained in:
codey 2024-08-11 09:50:41 -04:00
parent 2dd8d4de50
commit b9f0639934

View File

@ -4,6 +4,7 @@ import importlib
import urllib.parse
import regex
import logging
import json
from typing import Any, Annotated
from fastapi import FastAPI, Form, HTTPException
@ -27,6 +28,16 @@ class ValidLyricRequest(BaseModel):
extra: bool | None = False
src: str
class Config:
schema_extra = {
"example": {
"a": "eminem",
"s": "rap god",
"src": "WEB",
"extra": True
}
}
class LyricSearch(FastAPI):
def __init__(self, app: FastAPI, util, constants):