mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-20 08:35:29 +00:00
refactor / organize top level directories
This commit is contained in:
1 parent
97bea31b1d
commit
4be572c36b
57 files changed
+3
-3
No files matched your search
@@ -0,0 +1,21 @@
|
||||
development notes
|
||||
=================
|
||||
|
||||
Actix notes
|
||||
-----------
|
||||
|
||||
json request
|
||||
```
|
||||
async fn handler(request: web::Json<Mytype>) -> impl Responder { "whatever" }
|
||||
```
|
||||
|
||||
form-multipart request
|
||||
```
|
||||
async fn handler(request: web::Form<Mytype>) -> impl Responder { "whatever" }
|
||||
```
|
||||
|
||||
route parameters
|
||||
```
|
||||
#[get("/{name}")]
|
||||
async fn hello(name: web::Path<String>) -> impl Responder { format!("Hi {}", name) }
|
||||
```
|
||||
Reference in new issue
Block a user