add middleware prepending URI with method