debug mode! route api to /api/