generated endpoints and routes