Make endpoitns and templates for display