       resources "/comments", CommentController do
         get "/special", CommentController, :special
       end
-      resources "/files", FileController
-      resources "/posts", PostController, except: [:destroy]
-      resources "/sessions", SessionController, only: [:new, :create, :destroy]
+      resources "/files", FileController, except: [:destroy]
     end
 
-    resources "/files", FileController, name: "asset" do
-      resources "/comments", CommentController do
-        get "/avatar", Users, :avatar
-      end
-    end
-
-    resources "/scoped_files", FileController, only: [:index] do
-      resources "/comments", CommentController, except: [:destroy]
-    end
-
-    resources "/pages", PageController, param: "slug", name: "area" do
-      resources "/ratings", RatingController, param: "key", name: "vote"
+    resources "/files", FileController, only: [:index]
+
+    resources "/admin", UserController, param: "slug", name: "admin", only: [:show] do
+      resources "/comments", CommentController, param: "key", name: "post", except: [:destroy]
+      resources "files", FileController, only: [:show, :index, :new]
     end
   end
 

    def show(conn, _params), do: text(conn, "show files")
    def index(conn, _params), do: text(conn, "index files")
    def new(conn, _params), do: text(conn, "new files")
    def create(conn, _params), do: text(conn, "create files")
    def update(conn, _params), do: text(conn, "update files")
    def destroy(conn, _params), do: text(conn, "destroy files")
  end

  defmodule CommentController do

    def special(conn, _params), do: text(conn, "special comments")
  end

  defmodule Router do
    use Phoenix.Router

