Skip to content

Commit

Permalink
sdkgndkjfgn
Browse files Browse the repository at this point in the history
  • Loading branch information
User Cloverdev committed Mar 18, 2024
1 parent 8de7d88 commit a1b7dfd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ npm-debug.log
.env
.DS_Store

.elixir_ls
.elixir_ls

auth.txt
16 changes: 12 additions & 4 deletions lib/arcs_web/router.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
defmodule ArcsWeb.Router do
import Phoenix.LiveDashboard.Router
use ArcsWeb, :router

plug :match
plug :dispatch

pipeline :browser do
plug :accepts, ["html"]
Expand All @@ -26,11 +29,16 @@ defmodule ArcsWeb.Router do
get "/logout", AuthController, :logout
end

# scope "/api", Arcs do
# pipe_through :api
scope "/api", Arcs do
pipe_through :api

# post "/auth/signup", AuthController, :authenticate
#end

get "/version" do
send_resp(conn, 200, File.read!("version.txt"))
end

end

pipeline :admins_only do
plug :admin_basic_auth
Expand All @@ -43,7 +51,7 @@ end

defp admin_basic_auth(conn, _opts) do
username = "cadmins"
password = "VDC9Q%!mcvVrZ5"
password = File.read!("auth.txt")
Plug.BasicAuth.basic_auth(conn, username: username, password: password)
end
end
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.3.0
2.3.0.4

0 comments on commit a1b7dfd

Please sign in to comment.