now only works on restful routes

Signed-off-by: Andreas Heiberg <git@andreas-heiberg.com>