Logo: Relish

  1. Sign in

Project: Chaplin

Serving static files

Chaplin serves all static files in the public directory

Scenarios
Sending a request for a static file
Given
I have the following public/hello.txt file
Hello Chaplin!
And
I have the following app.json file
{
  "routes": []
}
And
I start a Chaplin server
When
I send the request GET /hello.txt
Then
I should get the following response
Hello Chaplin!

Last published almost 6 years ago by Victor Mours.