   end
 
 
+  # to add a new actor to a flag
+  #
   post "/flags/:name/actors" do
     flag_name = String.to_atom(name)
     actor_id = conn.params["actor_id"]

    redirect_to conn, "/flags/#{name}#group_#{group_name}"
  end

  delete "/flags/:name/groups/:group_name" do
    flag_name = String.to_atom(name)
    group_name = String.to_atom(group_name)

  end


  # form to create a new flag
  #
  get "/new" do
    conn
    |> html_resp(200, Templates.new(%{}))
  end


  # endpoint to create a new flag
  #
  post "/flags" do
    name = conn.params["flag_name"]

