23 lines
359 B
Elixir
23 lines
359 B
Elixir
defmodule Faces.Gallery do
|
|
@moduledoc """
|
|
The Gallery context.
|
|
"""
|
|
|
|
alias Faces.Repo
|
|
alias Faces.Gallery.{Person, Importer}
|
|
|
|
@doc """
|
|
Returns the list of people.
|
|
|
|
## Examples
|
|
|
|
iex> list_people()
|
|
[%Person{}, ...]
|
|
|
|
"""
|
|
def list_people do
|
|
Repo.all(Person)
|
|
end
|
|
|
|
def import_user(username), do: Importer.import(username)
|
|
end
|