Commits

Zoom Quiet committed 1b0d649

appended SAE py shell midware

  • Participants
  • Parent commits 06fe88f
  • Branches SAE

Comments (0)

Files changed (2)

     base_string = api_path + "?" + "&".join(key_values)
     return base_string
 
-application = sae.create_wsgi_app(app)
+
+from sae.ext.shell import ShellMiddleware
+application = sae.create_wsgi_app(ShellMiddleware(app, '1q2w3e4r5t')) 
+#application = sae.create_wsgi_app(app)
+import sae
+from sae.ext.shell import ShellMiddleware
+
+def urisaok(environ, start_response):
+    status = '200 OK'
+    response_headers = [('Content-type', 'text/plain')]
+    start_response(status, response_headers)
+    return ["Hello, world!"]
+
+application = sae.create_wsgi_app(ShellMiddleware(urisaok, '1q2w3e4r'))