Separated api from regular views.