From 8f762d47fa002c5cc19153db4ae62cb0d438a6ad Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Fri, 22 Oct 2021 18:28:12 -0600 Subject: Setup basic Plug.Router framework for serving requests Rather than use a full blown framework*, adding basic routing with Plug.Router seems to make more sense, since I'm not planning on hosting any content through this app. The app itself will just be endpoints for all available services that redirect the user to an available instance for the requested service. Note that I might change my mind about this, but that's unlikely. At most there would just be a home page with info about available instances, but even then that seems kinda pointless. Trying to keep this as absolutely simple as possible. *like Phoenix --- test/privacy_revolver_test.exs | 8 ++++++++ test/test_helper.exs | 1 + 2 files changed, 9 insertions(+) create mode 100644 test/privacy_revolver_test.exs create mode 100644 test/test_helper.exs (limited to 'test') diff --git a/test/privacy_revolver_test.exs b/test/privacy_revolver_test.exs new file mode 100644 index 0000000..aa8fa79 --- /dev/null +++ b/test/privacy_revolver_test.exs @@ -0,0 +1,8 @@ +defmodule PrivacyRevolverTest do + use ExUnit.Case + doctest PrivacyRevolver + + test "greets the world" do + assert PrivacyRevolver.hello() == :world + end +end diff --git a/test/test_helper.exs b/test/test_helper.exs new file mode 100644 index 0000000..869559e --- /dev/null +++ b/test/test_helper.exs @@ -0,0 +1 @@ +ExUnit.start() -- cgit v1.2.3