DotcomWeb.Hooks.AssignRoute
(MBTA Website v0.0.1)
View Source
Assign the route, before both disconnected and connected mounts.
Summary
Functions
Uses the route ID in the params to look up the corresponding
route, and assigns that route to the socket as :route.
Functions
Uses the route ID in the params to look up the corresponding
route, and assigns that route to the socket as :route.
If the route doesn't exist, then raises a
DotcomWeb.NotFoundError in order to get
DotcomWeb.Router.handle_errors/2 to render the 404 page.