Server codes for TAT Project, exclude client-side api