Skip to content

Commit f1aa494

Browse files
feat: serve static folder
1 parent 12f70fc commit f1aa494

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/python/servers/fastapi/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ async def health_check():
183183
<meta property="og:description" content="Pay for ACP jobs with x402 protocol on Virtuals Protocol">
184184
<meta property="og:site_name" content="Virtuals Protocol">
185185
<meta property="og:type" content="website">
186+
<meta property="og:image" content="/static/logo.png">
186187
187188
<!-- Favicon (x402scan displays this as the resource icon) -->
188189
<link rel="icon" type="image/x-icon" href="/favicon.ico">
@@ -250,6 +251,7 @@ async def acp_budget(request: Request) -> Dict[str, Any]:
250251
# "content": "This is premium content",
251252
# }
252253

254+
app.mount("/static", StaticFiles(directory="static"), name="static")
253255

254256
if __name__ == "__main__":
255257
import uvicorn
27.7 KB
Loading

0 commit comments

Comments
 (0)