routes
– an array of route objectsrequest
- configuration of a request.response
- configuration of the response.resourcePath
- relative path of the resource to serve, if the request was matched.contentType
- optional an override for the resource content type. By default it's automatically deduced from the file MIME type.
Last active
July 11, 2021 16:06
-
-
Save zats/24354f8bcd3fa9b52bfd to your computer and use it in GitHub Desktop.
Jeeves configuration sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"routes": [ | |
{ | |
"request": { | |
"method": "GET", | |
"pattern": "/hello" | |
}, | |
"response": { | |
"resourcePath": "path/page.html" | |
} | |
}, | |
{ | |
"request": { | |
"method": "POST", | |
"pattern": "/info/(\\w+)" | |
}, | |
"response": { | |
"resourcePath": "jeeves.json", | |
"contentType": "application/json" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@sash Zats Can I upload files onto my. MacBook using Jeeves using html because I am trying to do that but it is not working, Is any configuration required to achieve this?