(id)
| 103 | |
| 104 | @app.route("/api/projects/<id>", methods=["GET"]) |
| 105 | def get_project(id): |
| 106 | project_path = os.path.join(PROJECTS_DIR, id) |
| 107 | assert os.path.exists(project_path), f"Project with id {id} does not exist" |
| 108 | launcher_state, _ = get_launcher_state(project_path) |
| 109 | project_port = get_project_port(id) |
| 110 | return jsonify( |
| 111 | { |
| 112 | "id": id, |
| 113 | "state": launcher_state, |
| 114 | "project_folder_name": id, |
| 115 | "project_folder_path": project_path, |
| 116 | "last_modified": os.stat(project_path).st_mtime, |
| 117 | "port" : project_port |
| 118 | } |
| 119 | ) |
| 120 | |
| 121 | |
| 122 | @app.route("/api/get_config", methods=["GET"]) |
nothing calls this directly
no test coverage detected