Skip to content

Commit

Permalink
Merge pull request #1 from ekeren/testPr2
Browse files Browse the repository at this point in the history
dd
  • Loading branch information
Eyal Keren authored Dec 5, 2023
2 parents c2194d6 + e5afedb commit 4d62603
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/main.w
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions backend/wing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
DIR="$( cd "$( dirname "$0" )" && pwd )"

cd "$DIR"/../client
npm install

0 comments on commit 4d62603

Please sign in to comment.