diff --git a/backend/main.w b/backend/main.w index 78dc422..f6b7ec3 100644 --- a/backend/main.w +++ b/backend/main.w @@ -14,6 +14,13 @@ let api = new cloud.Api( react.addEnvironment("apiUrl", api.url); +api.get("/", inflight () => { + return { + status:200, + body: "Hello Wing" + }; +}); + api.get("/title", inflight () => { return { status:200, diff --git a/backend/wing.sh b/backend/wing.sh new file mode 100644 index 0000000..d00468b --- /dev/null +++ b/backend/wing.sh @@ -0,0 +1,5 @@ +#!/bin/sh +DIR="$( cd "$( dirname "$0" )" && pwd )" + +cd "$DIR"/../client +npm install