mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-13 18:28:18 +08:00
16 lines
353 B
Python
16 lines
353 B
Python
from controllers.service_api import api
|
|
from flask import current_app
|
|
from flask_restful import Resource
|
|
|
|
|
|
class IndexApi(Resource):
|
|
def get(self):
|
|
return {
|
|
"welcome": "Dify OpenAPI",
|
|
"api_version": "v1",
|
|
"server_version": current_app.config['CURRENT_VERSION']
|
|
}
|
|
|
|
|
|
api.add_resource(IndexApi, '/')
|