* API Articles v0-v1 restructure * Remove unused helper * Bulk move API controllers into concerns + add V1 controllers * Extract API routes + some fixes * Fix v1 api_controller authenticate! + add more article_controller specs * Completed spec/requests/api/v1/articles_spec.rb * specs up to listings * All v1 specs except for 9 skips * mime_types cleanup + authenticate! relocation Co-authored-by: Fernando Valverde <fernando@visualcosita.com>
14 lines
522 B
Ruby
14 lines
522 B
Ruby
module Api
|
|
module V0
|
|
# This controller is used for toggling feature flags in the test
|
|
# environment, specifically for Cypress tests.
|
|
#
|
|
# @note: Despite the used methods this controller does not add or remove
|
|
# the flags themselves, I just wanted distinct methods for enabling and
|
|
# disabling so we don't need conditional or boolean casting and these were
|
|
# the most fitting actions.
|
|
class FeatureFlagsController < ApiController
|
|
include Api::FeatureFlagsController
|
|
end
|
|
end
|
|
end
|