aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/views/directory_view.ex
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-10-15 17:29:05 +0200
committerAlex Auvolat <alex@adnab.me>2018-10-15 17:29:05 +0200
commit07841bd2ec86cb667aea633de5dcb068751e64d3 (patch)
tree85fd1f47ea93e39614a84497d92cf4ad629cb3d1 /shardweb/lib/views/directory_view.ex
parent181baf7e0c26c51d7c605bc9797f77ced9188455 (diff)
downloadshard-07841bd2ec86cb667aea633de5dcb068751e64d3.tar.gz
shard-07841bd2ec86cb667aea633de5dcb068751e64d3.zip
Friends list (beginning)
Diffstat (limited to 'shardweb/lib/views/directory_view.ex')
-rw-r--r--shardweb/lib/views/directory_view.ex9
1 files changed, 9 insertions, 0 deletions
diff --git a/shardweb/lib/views/directory_view.ex b/shardweb/lib/views/directory_view.ex
new file mode 100644
index 0000000..9ebdd3b
--- /dev/null
+++ b/shardweb/lib/views/directory_view.ex
@@ -0,0 +1,9 @@
+defmodule ShardWeb.DirectoryView do
+ use ShardWeb, :view
+
+ def dir_contents(conn, manifest) do
+ IO.puts(inspect manifest)
+ pid = Shard.Manager.find_or_start manifest
+ SApp.Directory.get_files pid
+ end
+end