|
| 1 | +'use strict' |
| 2 | + |
| 3 | +/** |
| 4 | + * Lightweight web framework for your serverless applications |
| 5 | + * @author Jeremy Daly <[email protected]> |
| 6 | + * @license MIT |
| 7 | + */ |
| 8 | + |
| 9 | +// Minimal mime map for common file types |
| 10 | + |
| 11 | +module.exports = { |
| 12 | + // images |
| 13 | + gif: 'image/gif', |
| 14 | + ico: 'image/x-icon', |
| 15 | + jpg: 'image/jpeg', |
| 16 | + jpeg: 'image/jpeg', |
| 17 | + png: 'image/png', |
| 18 | + svg: 'image/svg+xml', |
| 19 | + svgz: 'image/svg+xml', |
| 20 | + |
| 21 | + // text |
| 22 | + atom: 'application/atom+xml', |
| 23 | + css: 'text/css', |
| 24 | + csv: 'text/csv', |
| 25 | + html: 'text/html', |
| 26 | + htm: 'text/html', |
| 27 | + js: 'application/javascript', |
| 28 | + json: 'application/json', |
| 29 | + map: 'application/json', |
| 30 | + rdf: 'application/rdf+xml', |
| 31 | + rss: 'application/rss+xml', |
| 32 | + webmanifest: 'application/manifest+json', |
| 33 | + xml: 'application/xml', |
| 34 | + xls: 'application/xml', |
| 35 | + |
| 36 | + // other binary |
| 37 | + gz: 'application/gzip', |
| 38 | + pdf: 'application/pdf', |
| 39 | + zip: 'application/zip', |
| 40 | + |
| 41 | + // fonts |
| 42 | + woff: 'application/font-woff', |
| 43 | + |
| 44 | + // MS file Types |
| 45 | + doc: 'application/msword', |
| 46 | + dot: 'application/msword', |
| 47 | + docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', |
| 48 | + dotx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', |
| 49 | + docm: 'application/vnd.ms-word.document.macroEnabled.12', |
| 50 | + dotm: 'application/vnd.ms-word.template.macroEnabled.12', |
| 51 | + xls: 'application/vnd.ms-excel', |
| 52 | + xlt: 'application/vnd.ms-excel', |
| 53 | + xla: 'application/vnd.ms-excel', |
| 54 | + xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', |
| 55 | + xltx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', |
| 56 | + xlsm: 'application/vnd.ms-excel.sheet.macroEnabled.12', |
| 57 | + xltm: 'application/vnd.ms-excel.template.macroEnabled.12', |
| 58 | + xlam: 'application/vnd.ms-excel.addin.macroEnabled.12', |
| 59 | + xlsb: 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', |
| 60 | + ppt: 'application/vnd.ms-powerpoint', |
| 61 | + pot: 'application/vnd.ms-powerpoint', |
| 62 | + pps: 'application/vnd.ms-powerpoint', |
| 63 | + ppa: 'application/vnd.ms-powerpoint', |
| 64 | + pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation', |
| 65 | + potx: 'application/vnd.openxmlformats-officedocument.presentationml.template', |
| 66 | + ppsx: 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', |
| 67 | + ppam: 'application/vnd.ms-powerpoint.addin.macroEnabled.12', |
| 68 | + pptm: 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', |
| 69 | + potm: 'application/vnd.ms-powerpoint.template.macroEnabled.12', |
| 70 | + ppsm: 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', |
| 71 | + mdb: 'application/vnd.ms-access' |
| 72 | + |
| 73 | +} |
0 commit comments