Add some api routing stuff