From 81b5a844a2a155e28c497a8ce671eb5f02803e5d Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 1 Sep 2018 16:07:22 +0200 Subject: Import shardweb --- shardweb/lib/shard_web/views/room_view.ex | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 shardweb/lib/shard_web/views/room_view.ex (limited to 'shardweb/lib/shard_web/views/room_view.ex') diff --git a/shardweb/lib/shard_web/views/room_view.ex b/shardweb/lib/shard_web/views/room_view.ex new file mode 100644 index 0000000..b2d7ebe --- /dev/null +++ b/shardweb/lib/shard_web/views/room_view.ex @@ -0,0 +1,7 @@ +defmodule ShardWeb.RoomView do + use ShardWeb, :view + + def shard_list do + :ets.tab2list(:shard_db) + end +end -- cgit v1.2.3