mirror of
https://github.com/Xtao-Labs/Telegram-Custom-Artwork-Api.git
synced 2024-12-04 20:11:40 +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)
|