Files
blog-service/lib/blogservice_web/controllers/version_controller.ex
sophiathedev f08cf7b54c feat: initial commit
initial example environment variable used for project with MIX_ENV=prod (production environment)
creating base response for any response
development mode deployment for postgresql
2025-12-07 16:05:36 +07:00

20 lines
482 B
Elixir

defmodule BlogserviceWeb.VersionController do
use BlogserviceWeb, :controller
def version(conn, _params) do
runtime_elixir = Application.spec(:elixir, :vsn) |> List.to_string()
runtime_application = Application.spec(:blogservice, :vsn) |> List.to_string()
# conn
# |> response(:ok,
# data: %{
# runtime: %{
# elixir: runtime_elixir,
# otp: runtime_application
# }
# }
# )
conn |> response(:ok)
end
end