Skip to content

Commit 9a224f3

Browse files
committed
chore: init 파일 수정
1 parent ab893d1 commit 9a224f3

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

app/__init__.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,9 @@
1-
from flask import Flask, jsonify
1+
from flask import Flask
22
from flasgger import Swagger
33
from .routes import api_blueprint
44

55
def create_app():
66
app = Flask(__name__)
77
Swagger(app)
88
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-
239
return app

0 commit comments

Comments
 (0)