zf

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

commit 6e2c60674e328abf06932bfb2d2c5a05ea4fefd0
parent d7ea0d956c682c056fc7d8008b0cf4f6db5613ef
Author: Alberto Lerda <30939098+albertolerda@users.noreply.github.com>
Date:   Fri,  7 Oct 2022 11:27:07 +0200

Merge pull request #22 from dyne/return-schema

Return GraphQL schema
Diffstat:
M.editorconfig | 2+-
Msrc/zenflows/web/router.ex | 5+++++
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.editorconfig b/.editorconfig @@ -7,4 +7,4 @@ insert_final_newline = true trim_trailing_whitespace = true indent_style = tab indent_size = tab -tab_width = 8 +tab_width = 4 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")