Skip to content

Commit

Permalink
app version updated in the api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry committed Feb 7, 2025
1 parent 9c093b6 commit e9ab082
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/backend/app/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "2025.1.0"
5 changes: 4 additions & 1 deletion src/backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
from fastapi.templating import Jinja2Templates
from fastapi.responses import RedirectResponse, JSONResponse, Response
from psycopg_pool import AsyncConnectionPool
from psycopg import Connection

from app.__version__ import __version__
from app.config import settings
from app.projects import project_routes
from app.drones import drone_routes
Expand All @@ -17,7 +20,6 @@
from app.gcp import gcp_routes
from app.models.enums import HTTPStatus
from typing import Annotated
from psycopg import Connection
from app.db.database import get_db

root = os.path.dirname(os.path.abspath(__file__))
Expand Down Expand Up @@ -76,6 +78,7 @@ def get_application() -> FastAPI:
_app = FastAPI(
title=settings.APP_NAME,
description="HOTOSM Drone Tasking Manager",
version=__version__,
license_info={
"name": "GPL-3.0-only",
"url": "https://raw.githubusercontent.com/hotosm/drone-tm/main/LICENSE.md",
Expand Down

0 comments on commit e9ab082

Please sign in to comment.