We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42153d3 commit 77839bfCopy full SHA for 77839bf
examples/multiple_files.py
@@ -17,11 +17,10 @@
17
shell2http = Shell2HTTP(base_url_prefix="/cmd/")
18
shell2http.init_app(app, executor)
19
20
-ENDPOINT = "catthisformeplease"
21
-
22
-shell2http.register_command(endpoint=ENDPOINT, command_name="strings")
+shell2http.register_command(endpoint="strings", command_name="strings")
23
24
+# go to http://localhost:4000/ to execute
25
@app.route("/")
26
def test():
27
"""
@@ -32,7 +31,7 @@ def test():
32
31
$ strings /tmp/inputfile /tmp/someotherfile
33
```
34
35
- url = f"http://localhost:4000/cmd/{ENDPOINT}"
+ url = "http://localhost:4000/cmd/strings"
36
# create and read dummy data from temporary files
37
with tempfile.TemporaryFile() as fp:
38
fp.write(b"Hello world!")
0 commit comments