aboutsummaryrefslogtreecommitdiff
path: root/lockchain-http/examples/simple-http.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lockchain-http/examples/simple-http.rs')
-rw-r--r--lockchain-http/examples/simple-http.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/lockchain-http/examples/simple-http.rs b/lockchain-http/examples/simple-http.rs
new file mode 100644
index 0000000..a2855df
--- /dev/null
+++ b/lockchain-http/examples/simple-http.rs
@@ -0,0 +1,9 @@
+extern crate lockchain_core as lockchain;
+extern crate lockchain_http;
+
+fn main() {
+ use lockchain::EncryptedBody;
+ use lockchain_http::start_server;
+
+ start_server::<EncryptedBody>("localhost", "8888");
+} \ No newline at end of file