| # Copyright 2018 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| from dashboard.api import api_request_handler |
| # Module imported for its side effects, to register static report templates. |
| import dashboard.common.system_health_report # pylint: disable=unused-import |
| from dashboard.models import report_template |
| |
| |
| class ReportNamesHandler(api_request_handler.ApiRequestHandler): |
| |
| def _CheckUser(self): |
| pass |
| |
| def Post(self): |
| return report_template.List() |