Есть такой путь
def html_response(document):
s = open(document, "r")
return web.Response(text=s.read(), content_type='text/html')
@routes.get('/')
async def preview_page(request):
return html_response('src/PreviewPages/PreviewPage.html')
html
<body>
<div class='container'>
<img class='fon1' src='./back1.png' alt=""/>
<img class='fon1' src='./back1.png' alt=""/>
<div class="previewWrap">
<h1 class="previewText">
hi
</h1>
<a href="/preview"><button class="previewBut">next</button></a>
</div>
</div>
Вылетает ошибка:
GET localhost:8080/src/images/png/back1.png 404 (Not Found)