tokumei v0.6.4 Tokumei.Static

Generate routes to server static assets

This module will serve a file of static content. Configure the static directory by setting the @static variable.

defmodule MyApp.Router do
  use Tokumei.NotFound
  use Tokumei.Static

  @static "./public"
end

build on top of Raxx.Static, TODO passing options such as pattern of files to serve as configuration static to assume “./public” static needs to have an upper limit on file size