Serve content from a folder

Report a typo

According to the routing below, which files can the user access?

static/
├── scripts/
│   ├── secret/
│   │   └── key.js
│   ├── hello.js
│   └── main.js
└── style.css
routing {
    static("/assets") {
        staticBasePackage = "static"
        static("/scripts") {
            staticBasePackage = "static/scripts"
            resources("secret")
            resource("hello.js")
        }
    }
}
Select one or more options from the list

Create a free account to access the full topic