Static file serving
Neo can be fast static file server too. For example let’s take following directory structure.
├── assets
│ ├── css
│ │ └── stylesheet.css
│ └── js
│ └── script.js
├── main.go
We want to serve assets
directory using Neo. Ok, easy.
app.Serve("/static", "./path/to/assets")
Now if we navigate to /static/js/script.js
or /static/css/stylesheet.css
we will get content of those files.
Improve this document