Add /typst web form
This commit is contained in:
parent
0345a80349
commit
ede8621867
3 changed files with 23 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ pub async fn run(tx: mpsc::Sender<Command>, addr: String) -> anyhow::Result<()>
|
|||
.route("/photo", post(post_photo).fallback(get_static_file))
|
||||
.route("/text", post(post_text))
|
||||
.route("/tictactoe", post(post_tictactoe))
|
||||
.route("/typst", post(post_typst))
|
||||
.route("/typst", post(post_typst).fallback(get_static_file))
|
||||
.fallback(get(get_static_file))
|
||||
.layer(DefaultBodyLimit::max(32 * 1024 * 1024)) // 32 MiB
|
||||
.with_state(Server { tx });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue