zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

commit b551d87fb475b33b517405b1099adc8d53b88be0
parent 8380d3d4b35503c551180191d8bd05d8c8172a89
Author: Alberto Lerda <albertolerda97@gmail.com>
Date:   Fri,  7 Oct 2022 11:07:32 +0200

Zenflows.Web.Router: return graphql schema

Diffstat:
Msrc/zenflows/web/router.ex | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/zenflows/web/router.ex b/src/zenflows/web/router.ex @@ -45,6 +45,11 @@ forward "/play", to: Absinthe.Plug.GraphiQL, init_opts: [{:interface, :advanced} | @init_opts] +@sdl Absinthe.Schema.to_sdl(Zenflows.GQL.Schema) +get "/schema" do + Plug.Conn.send_resp(conn, 200, @sdl) +end + match _ do conn |> put_resp_content_type("text/html")