feat: first take at UI app
This commit is contained in:
12
lib/bds/desktop.ex
Normal file
12
lib/bds/desktop.ex
Normal file
@@ -0,0 +1,12 @@
|
||||
defmodule BDS.Desktop do
|
||||
@moduledoc false
|
||||
|
||||
def url do
|
||||
Application.get_env(:bds, :desktop)[:port]
|
||||
|> url()
|
||||
end
|
||||
|
||||
def url(port) when is_integer(port) do
|
||||
"http://127.0.0.1:#{port}/"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user