api: resource routing