mirror of
https://github.com/Xtao-Labs/Telegram-Custom-Artwork-Api.git
synced 2024-12-04 04:07:27 +00:00
14 lines
261 B
Python
14 lines
261 B
Python
from fastapi import FastAPI, Query
|
|
from utils import get_music
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get('/search')
|
|
async def search(
|
|
*,
|
|
service: str = "apple",
|
|
keyword: str = Query(..., title="The name of a song")
|
|
):
|
|
return await get_music(service, keyword)
|