Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
devwiki:litestar [2023/08/24 08:07] – created ying | devwiki:litestar [2023/08/24 09:19] – ying | ||
---|---|---|---|
Line 8: | Line 8: | ||
* uvicorn | * uvicorn | ||
* jsbeautifier | * jsbeautifier | ||
+ | |||
+ | ====== Concepts ====== | ||
+ | |||
+ | * it provides a active server, allow other pc or program to communicate with it | ||
+ | * it use url to point to each function of the app.py <code python> | ||
+ | # (python decorator) | ||
+ | @get("/" | ||
+ | async def func_a() -> str: | ||
+ | |||
+ | # same | ||
+ | func_a = get("/" | ||
+ | </ | ||
+ |