We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab893d1 commit 9a224f3Copy full SHA for 9a224f3
1 file changed
app/__init__.py
@@ -1,23 +1,9 @@
1
-from flask import Flask, jsonify
+from flask import Flask
2
from flasgger import Swagger
3
from .routes import api_blueprint
4
5
def create_app():
6
app = Flask(__name__)
7
Swagger(app)
8
app.register_blueprint(api_blueprint)
9
-
10
- @app.route('/')
11
- def index():
12
- return jsonify({
13
- "message": "관세청 챗봇 API 서버",
14
- "endpoints": {
15
- "/predict": "POST - 관세 예측 및 통관 관련 질문 처리",
16
- "/apidocs": "GET - API 문서 (Swagger)"
17
- },
18
- "example": {
19
- "question": "미국에서 150만원에 노트북을 샀는데 관세가 얼마나 나올까요?"
20
- }
21
- })
22
23
return app
0 commit comments