File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,23 @@ import (
19
19
)
20
20
21
21
var mimeTypes = map [string ]string {
22
- ".js" : "application/javascript" ,
23
- ".css" : "text/css" ,
24
- ".png" : "image/png" ,
25
- ".jpg" : "image/jpeg" ,
26
- ".gif" : "image/gif" ,
22
+ ".cjs" : "application/javascript" ,
23
+ ".css" : "text/css" ,
24
+ ".eot" : "font/eot" ,
25
+ ".gif" : "image/gif" ,
26
+ ".ico" : "image/x-icon" ,
27
+ ".jpg" : "image/jpeg" ,
28
+ ".js" : "application/javascript" ,
29
+ ".json" : "application/json" ,
30
+ ".less" : "text/plain" ,
31
+ ".map" : "application/json" ,
32
+ ".otf" : "font/otf" ,
33
+ ".png" : "image/png" ,
34
+ ".svg" : "image/svg+xml" ,
35
+ ".ttf" : "font/ttf" ,
36
+ ".txt" : "text/plain" ,
37
+ ".woff" : "font/woff" ,
38
+ ".woff2" : "font/woff2" ,
27
39
}
28
40
29
41
func StaticFileServer (root http.FileSystem ) http.Handler {
You can’t perform that action at this time.
0 commit comments