Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add ping route

+13
+9
lib/sower_web/controllers/ping_controller.ex
··· 1 + defmodule SowerWeb.PingController do 2 + use SowerWeb, :controller 3 + 4 + def ping(conn, _) do 5 + {:ok, _} = Sower.Repo.query("PRAGMA database_list") 6 + 7 + text(conn, "ok") 8 + end 9 + end
+4
lib/sower_web/router.ex
··· 22 22 live("/seeds/:id", SeedLive.Show, :show) 23 23 end 24 24 25 + scope "/", SowerWeb do 26 + get("/ping", PingController, :ping) 27 + end 28 + 25 29 scope "/api" do 26 30 pipe_through(:api) 27 31 get("/seeds", SowerWeb.SeedController, :list)