added resources collection and basic routing