Rename api OldController to OldElementsController

This commit is contained in:
Anton Khorev 2024-04-02 16:11:09 +03:00
parent c79da4746a
commit 588b77244b
4 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
# into one place. as it turns out, the API methods for historical
# nodes, ways and relations are basically identical.
module Api
class OldController < ApiController
class OldElementsController < ApiController
before_action :check_api_readable
before_action :check_api_writable, :only => [:redact]
before_action :setup_user_auth, :only => [:history, :show]

View file

@ -1,5 +1,5 @@
module Api
class OldNodesController < OldController
class OldNodesController < OldElementsController
private
def lookup_old_element

View file

@ -1,5 +1,5 @@
module Api
class OldRelationsController < OldController
class OldRelationsController < OldElementsController
private
def lookup_old_element

View file

@ -1,5 +1,5 @@
module Api
class OldWaysController < OldController
class OldWaysController < OldElementsController
private
def lookup_old_element