Open thinker007 opened 1 month ago
I fail to see why you can't achieve this with python code.
from fasthtml.common import *
import requests
app,rt = fast_app()
@rt('/')
def get():
response = requests.get("https://api.sampleapis.com/coffee/hot"). # << Make request
return Div(P(f'Hello World! {response.content}'), hx_get="/change") # << Use API response in user response
serve()
@thinker007 Is there a particular API service you are suggesting? That would functionality that would justify this kind of third-party dependency?
Otherwise @muhis is correct, this is something that individual projects should do on their own.
If you'd like to discuss your feature idea first with the community (highly recommended!) please visit our Discord channel.
bring api to website not database。
using api build fasthtml website