Sfoglia il codice sorgente

Add Finch / Floki dependencies

theenglishway (time) 4 anni fa
parent
commit
d84cf1d6e8
3 ha cambiato i file con 10 aggiunte e 5 eliminazioni
  1. 2 3
      lib/vaccins/application.ex
  2. 3 2
      mix.exs
  3. 5 0
      mix.lock

+ 2 - 3
lib/vaccins/application.ex

@@ -12,9 +12,8 @@ defmodule Vaccins.Application do
       # Start the PubSub system
       {Phoenix.PubSub, name: Vaccins.PubSub},
       # Start the Endpoint (http/https)
-      VaccinsWeb.Endpoint
-      # Start a worker by calling: Vaccins.Worker.start_link(arg)
-      # {Vaccins.Worker, arg}
+      VaccinsWeb.Endpoint,
+      {Finch, name: Vaccins.Finch}
     ]
 
     # See https://hexdocs.pm/elixir/Supervisor.html

+ 3 - 2
mix.exs

@@ -35,7 +35,6 @@ defmodule Vaccins.MixProject do
     [
       {:phoenix, "~> 1.5.3"},
       {:phoenix_live_view, "~> 0.13.0"},
-      {:floki, ">= 0.0.0", only: :test},
       {:phoenix_html, "~> 2.11"},
       {:phoenix_live_reload, "~> 1.2", only: :dev},
       {:phoenix_live_dashboard, "~> 0.2.0"},
@@ -43,7 +42,9 @@ defmodule Vaccins.MixProject do
       {:telemetry_poller, "~> 0.4"},
       {:gettext, "~> 0.11"},
       {:jason, "~> 1.0"},
-      {:plug_cowboy, "~> 2.0"}
+      {:plug_cowboy, "~> 2.0"},
+      {:floki, "~> 0.30.0"},
+      {:finch, "~> 0.6"}
     ]
   end
 

File diff suppressed because it is too large
+ 5 - 0
mix.lock