14 lines
313 B
Ruby
14 lines
313 B
Ruby
|
module Projects
|
||
|
module Settings
|
||
|
class BadgesController < Projects::ApplicationController
|
||
|
include GrapeRouteHelpers::NamedRouteMatcher
|
||
|
|
||
|
before_action :authorize_admin_project!
|
||
|
|
||
|
def index
|
||
|
@badge_api_endpoint = api_v4_projects_badges_path(id: @project.id)
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|