(pathname: string)
| 93 | } |
| 94 | |
| 95 | function isReservedPath(pathname: string): boolean { |
| 96 | return ( |
| 97 | pathname === '/api' || |
| 98 | pathname.startsWith('/api/') || |
| 99 | pathname === '/documentation' || |
| 100 | pathname.startsWith('/documentation/') |
| 101 | ); |
| 102 | } |
| 103 | |
| 104 | function mimeType(filePath: string): string { |
| 105 | switch (extname(filePath)) { |