Hide all of the export log APIs when the feature is disabled
This commit is contained in:
parent
2bebea23f7
commit
1bf2875eca
1 changed files with 2 additions and 0 deletions
|
@ -259,6 +259,7 @@ def _queue_logs_export(start_time, end_time, options, namespace_name, repository
|
|||
|
||||
|
||||
@resource('/v1/repository/<apirepopath:repository>/exportlogs')
|
||||
@show_if(features.LOG_EXPORT)
|
||||
@path_param('repository', 'The full path of the repository. e.g. namespace/name')
|
||||
class ExportRepositoryLogs(RepositoryParamResource):
|
||||
""" Resource for exporting the logs for the specific repository. """
|
||||
|
@ -287,6 +288,7 @@ class ExportRepositoryLogs(RepositoryParamResource):
|
|||
|
||||
|
||||
@resource('/v1/user/exportlogs')
|
||||
@show_if(features.LOG_EXPORT)
|
||||
class ExportUserLogs(ApiResource):
|
||||
""" Resource for exporting the logs for the current user repository. """
|
||||
schemas = {
|
||||
|
|
Reference in a new issue