☰
Debian Codegraph
@
2.24.0-1
/
/
docs
/
examples
/
static_files
/
upgrade_from_static_1.py
☽
☼
docs/examples/static_files/upgrade_from_static_1.py
code
plain
raw
Expat
Alc <
[email protected]
>,; Cody Fincher <
[email protected]
>,; Jacob Coffee <
[email protected]
>,; Janek Nouvertné <
[email protected]
>,; Litestar Developers <
[email protected]
>,; Peter Schutt <
[email protected]
>,; Visakh Unnikrishnan <
[email protected]
>,
debian/copyright
1
from litestar import Litestar
2
from litestar.static_files.config import StaticFilesConfig
3
4
app = Litestar(
5
static_files_config=[
6
StaticFilesConfig(directories=["assets"], path="/static"),
7
],
8
)