Spaceboy. Router
(Spaceboy v0.4.0)
View Source
Router implementation for Spaceboy server.
Router is technically a Spaceboy.Middleware but it is so heavily customized
that you would not recognize it. But of course you don't have to use this
helper module and implement it from scratch as Spaceboy.Middleware.
Spaceboy.Router is usually last middleware in your Spaceboy.Server but it
is not requirement.
Summary
Functions
Adds redirect
Render /robots.txt file
Options
List of paths which should be disallowed for robots to crawl
Adds route for URL
Render static files route
Options
See Spaceboy.Static.render/2 for options (:root and :prefix are populated
automatically ;) )