mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-01-30 06:12:06 +00:00
Merge pull request #82 from paperlinguist/patch-1
fix: Windows Mimetype errors in server module (Issue#49)
This commit is contained in:
@@ -14,6 +14,10 @@ from fastapi import APIRouter
|
||||
|
||||
from ..schemas import ModelInfo, ModelsResponse, SettingsResponse, SettingsUpdate
|
||||
|
||||
# Mimetype fix for Windows
|
||||
import mimetypes
|
||||
mimetypes.add_type("text/javascript", ".js", True)
|
||||
|
||||
# Add root to path for registry import
|
||||
ROOT_DIR = Path(__file__).parent.parent.parent
|
||||
if str(ROOT_DIR) not in sys.path:
|
||||
|
||||
Reference in New Issue
Block a user