diff options
| author | mrw1593 <botahamec@outlook.com> | 2023-03-15 19:05:21 -0400 |
|---|---|---|
| committer | mrw1593 <botahamec@outlook.com> | 2023-03-15 19:05:21 -0400 |
| commit | e1793b571eadb06c3da09697d379eccd72b12b73 (patch) | |
| tree | ed6141d199a596431dc1b3dda6b7a79e440b702f /src/api/liveops.rs | |
| parent | 7136b081097377d5c85b3c64f5e1443e98fc5318 (diff) | |
Created a basic HttpServer
Diffstat (limited to 'src/api/liveops.rs')
| -rw-r--r-- | src/api/liveops.rs | 10 |
1 files changed, 10 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) +} |
