Use sendFile, refactor mimetypes

This commit is contained in:
Zed
2019-10-21 05:55:18 +02:00
parent 59e392e3b4
commit cfcd471ffc
3 changed files with 8 additions and 22 deletions

View File

@ -1,4 +1,4 @@
import asyncdispatch
import asyncdispatch, mimetypes
from net import Port
import jester
@ -55,4 +55,6 @@ routes:
extend status, ""
extend media, ""
settings.mimes.register("1500x500", "image/jpeg")
runForever()