@ -51,7 +51,7 @@ module API
mount API::V3::Projects::AvailableAssigneesAPI
mount API::V3::Projects::AvailableResponsiblesAPI
mount API::V3::Categories::CategoriesByProjectAPI
mount API::V3::Versions::ProjectsVersionsAPI
mount API::V3::Versions::VersionsByProjectAPI
mount API::V3::Types::TypesByProjectAPI
end
@ -30,7 +30,7 @@
module API
module V3
module Versions
class VersionsProjectsAPI < Grape::API
class ProjectsByVersionAPI < Grape::API
resources :projects do
before do
@projects = @version.projects.visible(current_user).all
@ -59,7 +59,7 @@ module API
VersionRepresenter.new(@version, context)
mount API::V3::Versions::VersionsProjectsAPI
mount API::V3::Versions::ProjectsByVersionAPI
class ProjectsVersionsAPI < Grape::API
class VersionsByProjectAPI < Grape::API
resources :versions do
@versions = @project.shared_versions.all