Depends on #92. Factors out the doRedirect part of defaultMiddleware, and adds an applySchema function to do the rest. This allows request-time computation of the appropriate redirect route, which will be resolved to the correct path depending on the locale.
Depends on #92. Factors out the
doRedirect
part ofdefaultMiddleware
, and adds anapplySchema
function to do the rest. This allows request-time computation of the appropriate redirect route, which will be resolved to the correct path depending on the locale.