Revert "added rewrite to /api/"

This reverts commit e63cf2e30ee7e5a277462eb3a1fd7c0565cc547c.