     render(conn, "index.json", tags: tags)
   end
 
-  def create(conn, %{"tag" => tag_params}) do
+  def create(conn, tag_params) do
     changeset = Tag.changeset(%Tag{}, tag_params)
 
     case Repo.insert(changeset) do

    end
  end

  def delete(conn, %{"id" => _}) do
    tag = conn.assigns[:tag]

    # Here we use delete! (with a bang) because we expect


  plug Guardian.Plug.EnsureAuthenticated, %{handler: Core.Auth} when action in [:create, :update, :delete]
  plug :authorize when action in [:create, :update, :delete]
  plug :find when action in [:update, :delete, :show]

  def index(conn, _params) do
