1 # frozen_string_literal: true
5 class WaysController < ApiController
8 before_action :set_request_formats
11 # returns all the ways which are currently using the node given in the
12 # :node_id parameter. note that this used to return deleted ways as well, but
13 # this seemed not to be the expected behaviour, so it was removed.
17 .where(:id => WayNode.where(
18 :node_id => params[:node_id]
22 respond_to do |format|