Fixed homework api to get homework for a specific class.