BLOG-43 Post related api endpoints #55

Merged
squid merged 9 commits from BLOG-43_post_crud_api into main 2025-06-07 21:26:10 +08:00
4 changed files with 1536 additions and 0 deletions
Showing only changes of commit 98a9ecfd86 - Show all commits

1
backend/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

1519
backend/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

7
backend/Cargo.toml Normal file
View 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
View 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
}