code: def api_route(
      self, path: str, *, include_in_schema: bool = True, **kwargs: Any
  ) -> Callable[[DecoratedCallable], DecoratedCallable]:
      if path.endswith("/"):
          path = path[:-1]
  
      add_path = super().api_route(
          path, include_in_schema=include_in_schema, **kwargs
      )
  
      alternate_path = path + "/"
      add_alternate_path = super().api_route(
          alternate_path, include_in_schema=False, **kwargs
      )
  
      def decorator(func: DecoratedCallable) -> DecoratedCallable:
          add_alternate_path(func)
          return add_path(func)
  
      return decorator
  
file_path: aim/aim/web/api/utils.py
imports: import datetime
  import pytz
  from fastapi import APIRouter
  from fastapi import HTTPException
  from fastapi.types import DecoratedCallable
  from starlette.types import ASGIApp, Receive, Scope, Send
  from typing import Any, Callable
label_desc: Use image node_id 1 for calling the APIRouter obj's underlying member method code with example usage: obj.api_route(path) and returns: decorator, add_path