mirror of
https://github.com/langgenius/dify.git
synced 2026-05-20 16:57:01 +08:00
New Flask blueprint at /openapi/v1/ that will host user-scoped programmatic endpoints (device flow, identity, sessions, workspaces). Ships only a smoke route GET /openapi/v1/_health for now; subsequent phases lift handlers in from service_api, console, and the orphan oauth_device_sso.py. CORS is intentionally omitted here and configured in step A.5 once the allowlist envvar lands. Plan: docs/superpowers/plans/2026-04-26-openapi-migration.md (in difyctl repo).
10 lines
183 B
Python
10 lines
183 B
Python
from flask_restx import Resource
|
|
|
|
from controllers.openapi import openapi_ns
|
|
|
|
|
|
@openapi_ns.route("/_health")
|
|
class HealthApi(Resource):
|
|
def get(self):
|
|
return {"ok": True}
|