summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/liveops.rs10
-rw-r--r--src/api/mod.rs3
2 files changed, 13 insertions, 0 deletions
diff --git a/src/api/liveops.rs b/src/api/liveops.rs
new file mode 100644
index 0000000..355103d
--- /dev/null
+++ b/src/api/liveops.rs
@@ -0,0 +1,10 @@
+use actix_web::{get, web, Scope};
+
+#[get("ping")]
+async fn ping() -> &'static str {
+ "pong"
+}
+
+pub fn service() -> Scope {
+ web::scope("liveops/").service(ping)
+}
diff --git a/src/api/mod.rs b/src/api/mod.rs
new file mode 100644
index 0000000..f934d0e
--- /dev/null
+++ b/src/api/mod.rs
@@ -0,0 +1,3 @@
+mod liveops;
+
+pub use liveops::service as liveops;