Skip to content

Instantly share code, notes, and snippets.

@belohlavek
Last active December 1, 2017 20:51
Show Gist options
  • Save belohlavek/1076ab5664211d3498721d7bfae3fe24 to your computer and use it in GitHub Desktop.
Save belohlavek/1076ab5664211d3498721d7bfae3fe24 to your computer and use it in GitHub Desktop.
Server
import * from dw::http::Server
---
api({
host: "localhost",
port: 8080,
contentType: "application/json"
}, {
"/": {
GET: (request) -> {
body: {
name: "It works 2"
}
}
}
})
{
"project": {
"name": "Server",
"mainScript": "scripts/main.dwl",
"apiled": {
"deploymentId": "4bc1372c-0847-43f0-98d7-571a6746941e",
"domain": "Untitled-project"
}
},
"meta": {
"projectFileVersion": "0.1.0",
"creationDate": "12/01/2017"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment