Refactored resource routes
Created api subdomain