回答編集履歴
2
コードの記入訂正
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
訂正
|
10
10
|
|
11
|
-
|
11
|
+
```python
|
12
12
|
|
13
13
|
from flask import Flask
|
14
14
|
|
@@ -40,6 +40,8 @@
|
|
40
40
|
|
41
41
|
app.run(host='0.0.0.0')
|
42
42
|
|
43
|
+
```
|
44
|
+
|
43
45
|
|
44
46
|
|
45
47
|
接続確認
|
1
インデント訂正
test
CHANGED
@@ -10,35 +10,35 @@
|
|
10
10
|
|
11
11
|
----
|
12
12
|
|
13
|
-
from flask import Flask
|
13
|
+
from flask import Flask
|
14
14
|
|
15
|
-
from decorator import requires_auth
|
15
|
+
from decorator import requires_auth
|
16
16
|
|
17
|
-
app = Flask(__name__)
|
17
|
+
app = Flask(__name__)
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
@app.route("/")
|
21
|
+
@app.route("/")
|
22
22
|
|
23
|
-
@requires_auth
|
23
|
+
@requires_auth
|
24
24
|
|
25
|
-
def index():
|
25
|
+
def index():
|
26
26
|
|
27
|
-
return "Hello Index!"
|
27
|
+
return "Hello Index!"
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
@app.route("/hello")
|
31
|
+
@app.route("/hello")
|
32
32
|
|
33
|
-
def hello():
|
33
|
+
def hello():
|
34
34
|
|
35
|
-
return "Hello World!"
|
35
|
+
return "Hello World!"
|
36
36
|
|
37
37
|
|
38
38
|
|
39
|
-
if __name__ == "__main__":
|
39
|
+
if __name__ == "__main__":
|
40
40
|
|
41
|
-
app.run(host='0.0.0.0')
|
41
|
+
app.run(host='0.0.0.0')
|
42
42
|
|
43
43
|
|
44
44
|
|