fix(rewrite): Made sure rewrite for code.* only worked on api/ routes.