Skip to content

Commit 47f2a9f

Browse files
committed
Update app.py
1 parent 7cbbbd7 commit 47f2a9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def stop_ec2_instances():
9090
return jsonify({'Message': "Unexpected Error occured", 'Error': str(error)}), 500
9191

9292

93+
# Endpoint: http://<api_host>:<api_port>/ec2/create
9394
@app.route("/ec2/create", methods=["POST"])
9495
def create_ec2_instance():
9596
try:
@@ -114,6 +115,7 @@ def create_ec2_instance():
114115
return jsonify({'Message': "Unexpected Error occured", 'Error': str(error)}), 500
115116

116117

118+
# Endpoint: http://<api_host>:<api_port>/ec2/terminate
117119
@app.route("/ec2/terminate", methods=["POST"])
118120
def terminate_ec2_instance():
119121
try:

0 commit comments

Comments
 (0)