We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b69496 commit 4187f26Copy full SHA for 4187f26
app.py
@@ -11,25 +11,16 @@
11
12
13
class APP(Resource):
14
-
15
def get(self):
16
return {'this is soon to become an awesome->': 'website'}
17
18
19
def post(self):
20
- jk = joke.getJoke()
21
- jk = jk.encode('ascii', 'ignore').decode('ascii')
22
- #jk = jk.encode('utf-8')
23
- return jk
+ return joke.getJoke()
24
25
26
class API(Resource):
27
28
29
30
31
- # jk = jk.encode('utf-8')
32
33
34
35
api.add_resource(APP, '/')
0 commit comments