-
-
Save matiasbargas/8234949e82a3166629546e4678d021f7 to your computer and use it in GitHub Desktop.
Untitled project
This file contains 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
{ | |
"message": [1] | |
} |
This file contains 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
import * from dw::http::Server | |
var serverConfig = | |
{ | |
"host": "0.0.0.0", | |
"port": 8080, | |
"contentType": "application/json" | |
} | |
--- | |
api(serverConfig, | |
{ | |
"/": { | |
GET: (request) -> { | |
body: "hello world!" | |
} | |
}, | |
"/.+": { | |
GET: ((request) -> serveResource(request.path)) | |
} | |
} | |
) |
This file contains 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
{ | |
"project": { | |
"name": "Untitled project", | |
"mainScript": "scripts/main.dwl" | |
}, | |
"meta": { | |
"projectFileVersion": "0.1.0", | |
"creationDate": "11/29/2017" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment