Lists the projects for authorized user :return: list of projects
()
| 188 | methods=['GET'], endpoint='projects') |
| 189 | @pga_login_required |
| 190 | def get_projects(): |
| 191 | """ |
| 192 | Lists the projects for authorized user |
| 193 | :return: list of projects |
| 194 | """ |
| 195 | google_obj = _get_google_from_session() |
| 196 | if google_obj is not None: |
| 197 | projects_list, error = google_obj.get_projects() |
| 198 | if error: |
| 199 | return bad_request(errormsg=sanitize_external_text(error)) |
| 200 | return make_json_response(data=projects_list) |
| 201 | |
| 202 | |
| 203 | @blueprint.route('/regions/<project_id>', |
nothing calls this directly
no test coverage detected