mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
20 lines
468 B
Python
20 lines
468 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.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")
|
|
|
|
|
|
init_answer_routes()
|