SarahXia0405 commited on
Commit
442a34a
·
verified ·
1 Parent(s): 10a4808

Update api/server.py

Browse files
Files changed (1) hide show
  1. api/server.py +7 -0
api/server.py CHANGED
@@ -23,6 +23,9 @@ from api.clare_core import (
23
  summarize_conversation,
24
  )
25
 
 
 
 
26
  # ✅ LangSmith (optional)
27
  try:
28
  from langsmith import Client
@@ -78,6 +81,9 @@ app.add_middleware(
78
  allow_headers=["*"],
79
  )
80
 
 
 
 
81
  # ----------------------------
82
  # Static hosting (Vite build)
83
  # ----------------------------
@@ -642,6 +648,7 @@ async def upload(
642
  if doc_type == "Syllabus":
643
  class _F:
644
  pass
 
645
  fo = _F()
646
  fo.name = tmp_path
647
  try:
 
23
  summarize_conversation,
24
  )
25
 
26
+ # ✅ NEW: course directory + workspace schema routes
27
+ from api.routes_directory import router as directory_router
28
+
29
  # ✅ LangSmith (optional)
30
  try:
31
  from langsmith import Client
 
81
  allow_headers=["*"],
82
  )
83
 
84
+ # ✅ NEW: include directory/workspace APIs BEFORE SPA fallback
85
+ app.include_router(directory_router)
86
+
87
  # ----------------------------
88
  # Static hosting (Vite build)
89
  # ----------------------------
 
648
  if doc_type == "Syllabus":
649
  class _F:
650
  pass
651
+
652
  fo = _F()
653
  fo.name = tmp_path
654
  try: