701eccb35c
- Introduce models & migrations for portals, categories, folders and articles - CRUD API for portals - CRUD API for categories Addresses: #714 Co-authored-by: Sojan <sojan@pepalo.com>
9 lines
220 B
Ruby
9 lines
220 B
Ruby
class Api::V1::Accounts::Kbase::BaseController < Api::V1::Accounts::BaseController
|
|
before_action :portal
|
|
|
|
private
|
|
|
|
def portal
|
|
@portal ||= Current.account.kbase_portals.find_by(id: params[:portal_id])
|
|
end
|
|
end
|