Serve a random image from imgfolder on /random_image endpoint
This commit is contained in:
parent
f0fb5f0d9f
commit
96993ac3d0
3 changed files with 11 additions and 2 deletions
|
@ -3,5 +3,6 @@
|
|||
<p>Hello slider number {{ num }}!</p>
|
||||
<p><img src="{{ url_for("static", filename="cat.jpg") }}"></p>
|
||||
<p><a href="{{ url_for("image", filename="IMG_0001.jpg") }}">Image</a></p>
|
||||
<p><a href="{{ url_for("random_image") }}">Random Image</a></p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue