mirror of
https://github.com/guilhermewerner/rust-api
synced 2025-06-16 23:15:07 +00:00
Change to Actix Web
This commit is contained in:
6
Source/Controllers/Hello.rs
Normal file
6
Source/Controllers/Hello.rs
Normal file
@ -0,0 +1,6 @@
|
||||
use actix_web::get;
|
||||
|
||||
#[get("/")]
|
||||
pub async fn Index() -> &'static str {
|
||||
return "Hello World\n";
|
||||
}
|
1
Source/Controllers/mod.rs
Normal file
1
Source/Controllers/mod.rs
Normal file
@ -0,0 +1 @@
|
||||
pub mod Hello;
|
Reference in New Issue
Block a user