Rename to version
This commit is contained in:
parent
c70290d6d5
commit
159439a67e
2 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ module Api
|
|||
|
||||
##### Methods
|
||||
# Returns the latest update
|
||||
def latest
|
||||
def version
|
||||
render json: UpdateBlueprint.render_as_json(AppUpdate.last)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ Rails.application.routes.draw do
|
|||
resources :grid_summons, only: %i[update destroy]
|
||||
resources :favorites, only: [:create]
|
||||
|
||||
get 'latest', to: 'api#latest'
|
||||
get 'version', to: 'api#version'
|
||||
|
||||
get 'users/info/:id', to: 'users#info'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue