Add rules for routing and auth check
API refactoring