Route Space root to dashboard by default
Browse files- app/routes.py +2 -4
app/routes.py
CHANGED
|
@@ -6,7 +6,7 @@ import threading
|
|
| 6 |
import time
|
| 7 |
|
| 8 |
from fastapi import APIRouter, HTTPException, Request
|
| 9 |
-
from fastapi.responses import HTMLResponse, JSONResponse, StreamingResponse
|
| 10 |
|
| 11 |
from . import chat, config, constants, session as session_module
|
| 12 |
from .account import (
|
|
@@ -1623,6 +1623,4 @@ async def anthropic_count_tokens(request: Request):
|
|
| 1623 |
# ----------------------------------------------------------------------
|
| 1624 |
@router.get("/")
|
| 1625 |
def index():
|
| 1626 |
-
return
|
| 1627 |
-
"<!DOCTYPE html><html><head><meta charset=\"utf-8\"/><title>服务已启动</title></head><body><p>DeepSeek2API Neo 已启动!</p></body></html>"
|
| 1628 |
-
)
|
|
|
|
| 6 |
import time
|
| 7 |
|
| 8 |
from fastapi import APIRouter, HTTPException, Request
|
| 9 |
+
from fastapi.responses import HTMLResponse, JSONResponse, RedirectResponse, StreamingResponse
|
| 10 |
|
| 11 |
from . import chat, config, constants, session as session_module
|
| 12 |
from .account import (
|
|
|
|
| 1623 |
# ----------------------------------------------------------------------
|
| 1624 |
@router.get("/")
|
| 1625 |
def index():
|
| 1626 |
+
return RedirectResponse(url="/dashboard", status_code=307)
|
|
|
|
|
|