2024-12-24 18:38:51 +08:00
|
|
|
from flask_restful import Resource # type: ignore
|
2024-01-17 22:39:47 +08:00
|
|
|
|
2024-07-12 16:51:43 +08:00
|
|
|
from configs import dify_config
|
2024-02-06 13:21:13 +08:00
|
|
|
from controllers.service_api import api
|
|
|
|
|
2024-01-17 22:39:47 +08:00
|
|
|
|
|
|
|
class IndexApi(Resource):
|
|
|
|
def get(self):
|
|
|
|
return {
|
|
|
|
"welcome": "Dify OpenAPI",
|
|
|
|
"api_version": "v1",
|
2024-07-12 16:51:43 +08:00
|
|
|
"server_version": dify_config.CURRENT_VERSION,
|
2024-01-17 22:39:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-08-26 15:29:10 +08:00
|
|
|
api.add_resource(IndexApi, "/")
|