BLOG-43 init: actix-web project
All checks were successful
Frontend CI / build (push) Successful in 1m30s
All checks were successful
Frontend CI / build (push) Successful in 1m30s
This commit is contained in:
parent
8d33f2bae3
commit
98a9ecfd86
1
backend/.gitignore
vendored
Normal file
1
backend/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/target
|
1519
backend/Cargo.lock
generated
Normal file
1519
backend/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
7
backend/Cargo.toml
Normal file
7
backend/Cargo.toml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[package]
|
||||||
|
name = "squidspirit-blog"
|
||||||
|
version = "0.1.1"
|
||||||
|
edition = "2024"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
actix-web = "4.10.2"
|
9
backend/src/main.rs
Normal file
9
backend/src/main.rs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
use actix_web::{App, HttpResponse, HttpServer, web};
|
||||||
|
|
||||||
|
#[actix_web::main]
|
||||||
|
async fn main() -> std::io::Result<()> {
|
||||||
|
HttpServer::new(|| App::new().route("/", web::get().to(HttpResponse::Ok)))
|
||||||
|
.bind(("127.0.0.1", 8080))?
|
||||||
|
.run()
|
||||||
|
.await
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user