CaesarCloudSync commited on
Commit
ab5d171
·
1 Parent(s): 6947a85

RevisionBankCardLink First commit

Browse files
__pycache__/main.cpython-310.pyc CHANGED
Binary files a/__pycache__/main.cpython-310.pyc and b/__pycache__/main.cpython-310.pyc differ
 
main.py CHANGED
@@ -7,9 +7,8 @@ import asyncio
7
  app = FastAPI()
8
  templates = Jinja2Templates(directory="templates")
9
  app.mount("/static", StaticFiles(directory="static"), name="static")
10
- @app.get("/", response_class=HTMLResponse)
11
- async def hello(request: Request):
12
- name = "Tyrone"
13
  return templates.TemplateResponse("hello.html", {"request": request, "name":name})
14
 
15
 
 
7
  app = FastAPI()
8
  templates = Jinja2Templates(directory="templates")
9
  app.mount("/static", StaticFiles(directory="static"), name="static")
10
+ @app.get("/hello/{name}", response_class=HTMLResponse)
11
+ async def hello(request: Request, name:str):
 
12
  return templates.TemplateResponse("hello.html", {"request": request, "name":name})
13
 
14
 
static/test1.jpg ADDED
templates/hello.html CHANGED
@@ -15,7 +15,7 @@
15
  </meta>
16
  <meta property="og:description" content="Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.">
17
  </meta>
18
- <meta property="og:image" content="{{ url_for('static', path='test.jpg') }}">
19
  </meta>
20
 
21
  <meta property="twitter:card" content="summary_large_image">
@@ -26,7 +26,7 @@
26
  </meta>
27
  <meta property="twitter:description" content="Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.">
28
  </meta>
29
- <meta property="twitter:image" content="{{ url_for('static', path='test.jpg') }}">
30
  </meta>
31
  <style>
32
  a,p,h1{
@@ -77,7 +77,7 @@
77
  image.png
78
  </tr>
79
  <tr>
80
- <td ><img key={1} style="width:55%;height:55%" src="{{ url_for('static', path='test.jpg') }}"></img></td>
81
 
82
  </tr>
83
  </tbody>
 
15
  </meta>
16
  <meta property="og:description" content="Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.">
17
  </meta>
18
+ <meta property="og:image" content="{{ url_for('static', path=name) }}">
19
  </meta>
20
 
21
  <meta property="twitter:card" content="summary_large_image">
 
26
  </meta>
27
  <meta property="twitter:description" content="Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.">
28
  </meta>
29
+ <meta property="twitter:image" content="{{ url_for('static', path=name) }}">
30
  </meta>
31
  <style>
32
  a,p,h1{
 
77
  image.png
78
  </tr>
79
  <tr>
80
+ <td ><img key={1} style="width:55%;height:55%" src="{{ url_for('static', path=name) }}"></img></td>
81
 
82
  </tr>
83
  </tbody>