do 3 quote do 4 use ConnectivityApi.Web, :controller 5 6 def show(conn, id, user, claims) do 7 unquote(__MODULE__).show(conn, id, user, claims, 8 model: Database.Query.unquote(model_name)) 9 end 10 11 def create(conn, data, user, claims) do 12 unquote(__MODULE__).create(conn, data, user, claims, 13 model: Database.Query.unquote(model_name), 14 model_description: unquote(public_name)) 15 end 16 17 def update(conn, data, user, claims) do 18 unquote(__MODULE__).update(conn, data, user, claims, 19 model: Database.Query.unquote(model_name)) 20 end 21 22 def delete(conn, id, user, claims) do 23 unquote(__MODULE__).delete(conn, id, user, claims, 24 model: Database.Query.unquote(model_name)) 25 end 26 end 27 end 28 29 use ConnectivityApi.Web, :controller 30 31 alias SharedServices.Authorization 32 alias ConnectivityApi.Query.Edge, as: EdgeQueries • This applies to all of these, though