Static files
Crow registers a route at /static/<path> that serves any file under the static/ directory of your project. Garvan inherits this for free.
The default static handler
Drop assets into static/css/, static/js/ or static/img/ and reference them in your templates:
<link rel="stylesheet" href="/static/css/app.css">
<script src="/static/js/bootstrap.min.js"></script>
<img src="/static/img/logo.png">
The handler sets a correct Content-Type based on file extension and supports Range requests.
Customizing
The directory and URL prefix are defined as compile-time macros in vendors/Garvan/crow/settings.h:
#define CROW_STATIC_DIRECTORY "static/"
#define CROW_STATIC_ENDPOINT "/static/<path>"
Override them before including crow.h if you need different defaults. For per-blueprint static directories, see Blueprints.