Do not version API. Premature given current state of the codebase

- Reason
  - All clients that currently consume the API are part of Khoj
  - Any breaking API changes will be fixed in clients immediately
  - So decoupling client from API is not required
  - This removes the burden of maintaining muliple versions of the API
This commit is contained in:
Debanjum Singh Solanky
2022-10-08 13:16:08 +03:00
parent 2c548133f3
commit d292bdcc11
9 changed files with 34 additions and 34 deletions

View File

@@ -19,7 +19,7 @@ from PyQt6.QtCore import QThread, QTimer
# Internal Packages
from src.configure import configure_server
from src.routers.api_v1_0 import api_v1_0
from src.routers.api import api
from src.routers.api_beta import api_beta
from src.routers.frontend import frontend_router
from src.utils import constants, state
@@ -31,7 +31,7 @@ from src.interface.desktop.system_tray import create_system_tray
# Initialize the Application Server
app = FastAPI()
app.mount("/static", StaticFiles(directory=constants.web_directory), name="static")
app.include_router(api_v1_0, prefix="/api/v1.0")
app.include_router(api, prefix="/api")
app.include_router(api_beta, prefix="/api/beta")
app.include_router(frontend_router)