Last active
December 1, 2017 20:51
-
-
Save belohlavek/1076ab5664211d3498721d7bfae3fe24 to your computer and use it in GitHub Desktop.
Server
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
{} |
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 | |
--- | |
api({ | |
host: "localhost", | |
port: 8080, | |
contentType: "application/json" | |
}, { | |
"/": { | |
GET: (request) -> { | |
body: { | |
name: "It works 2" | |
} | |
} | |
} | |
}) |
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": "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