fed8b2eed7
Backend release / release (push) Waiting to run
Bandit Security Scan / bandit_scan (push) Waiting to run
Build and push multi-arch DocsGPT Docker image / build (linux/amd64, ubuntu-latest, amd64) (push) Waiting to run
Build and push multi-arch DocsGPT Docker image / build (linux/arm64, ubuntu-24.04-arm, arm64) (push) Waiting to run
Build and push multi-arch DocsGPT Docker image / manifest (push) Blocked by required conditions
Build and push DocsGPT FE Docker image for development / build (linux/amd64, ubuntu-latest, amd64) (push) Waiting to run
Build and push DocsGPT FE Docker image for development / build (linux/arm64, ubuntu-24.04-arm, arm64) (push) Waiting to run
Build and push DocsGPT FE Docker image for development / manifest (push) Blocked by required conditions
Python linting / ruff (push) Waiting to run
Run python tests with pytest / Run tests and count coverage (3.12) (push) Waiting to run
React Widget Build / build (push) Waiting to run
22 lines
584 B
Python
22 lines
584 B
Python
from flask import Blueprint
|
|
|
|
from application.api import api
|
|
from application.api.answer.routes.answer import AnswerResource
|
|
from application.api.answer.routes.base import answer_ns
|
|
from application.api.answer.routes.search import SearchResource
|
|
from application.api.answer.routes.stream import StreamResource
|
|
|
|
|
|
answer = Blueprint("answer", __name__)
|
|
|
|
api.add_namespace(answer_ns)
|
|
|
|
|
|
def init_answer_routes():
|
|
api.add_resource(StreamResource, "/stream")
|
|
api.add_resource(AnswerResource, "/api/answer")
|
|
api.add_resource(SearchResource, "/api/search")
|
|
|
|
|
|
init_answer_routes()
|