summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-08-13 21:11:11 +0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-08-13 22:13:48 +0800
commite74ade7ac9bfff9239c0243c0fdf01b18d4a0ec3 (patch)
tree9589f3840df5203b60be89efa878d3c2ee678af0 /docs
parentb1d516e2b7df2d881c4dc84840e1cdc475b845b5 (diff)
downloadcask-e74ade7ac9bfff9239c0243c0fdf01b18d4a0ec3.tar.gz
cask-e74ade7ac9bfff9239c0243c0fdf01b18d4a0ec3.tar.bz2
cask-e74ade7ac9bfff9239c0243c0fdf01b18d4a0ec3.zip
0.1.00.1.0
Diffstat (limited to 'docs')
-rw-r--r--docs/pages/1 - Cask: a Scala HTTP micro-framework .md14
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/pages/1 - Cask: a Scala HTTP micro-framework .md b/docs/pages/1 - Cask: a Scala HTTP micro-framework .md
index b87c5a6..78046da 100644
--- a/docs/pages/1 - Cask: a Scala HTTP micro-framework .md
+++ b/docs/pages/1 - Cask: a Scala HTTP micro-framework .md
@@ -65,6 +65,15 @@ can run using:
./cask -w app.test
```
+To configure your Cask application to work with IntelliJ, you can use:
+
+```bash
+./cask mill.scalalib.GenIdea/idea
+```
+
+This will need to be re-run when you re-configure your `build.sc` file, e.g.
+when adding additional modules or third-party dependencies.
+
Cask is just a Scala library, and you can use Cask in any existing Scala project
via the following coordinates:
@@ -188,11 +197,14 @@ ago)
$$$staticFiles
-You can ask Cask to serve static files by defining a `@cask.static` endpoint.
+You can ask Cask to serve static files by defining a `@cask.staticFiles` endpoint.
This will match any subpath of the value returned by the endpoint (e.g. above
`/static/file.txt`, `/static/folder/file.txt`, etc.) and return the file
contents from the corresponding file on disk (and 404 otherwise).
+Similarly, `@cask.staticResources` attempts to serve a request based on the JVM
+resource path, returning the data if a resource is present and a 404 otherwise.
+
### Redirects or Aborts
$$$redirectAbort