added type annotation
got the routes working as described in PROBLEMS