Skip to content

Commit 444bbb2

Browse files
Marie HoegerMarie Hoeger
authored andcommitted
moving app.ts
1 parent 05243d0 commit 444bbb2

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

future_dist_output/HttpTrigger/function.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"name": "res"
1717
}
1818
],
19-
"scriptFile": "../../dist/app.js",
19+
"scriptFile": "../../dist/src/app.js",
2020
"entryPoint": "HttpTrigger1"
2121
}

future_dist_output/HttpTrigger2/function.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"name": "res"
1717
}
1818
],
19-
"scriptFile": "../../dist/app.js",
19+
"scriptFile": "../../dist/src/app.js",
2020
"entryPoint": "HttpTrigger2"
2121
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "test-plus-plus",
3-
"version": "1.0.0",
3+
"version": "0.0.0",
44
"description": "",
55
"scripts": {
66
"build": "tsc",

app.ts renamed to src/app.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { FunctionApp } from "./future_node_modules/functions/azure-functions"
1+
import { FunctionApp } from "../future_node_modules/functions/azure-functions"
22
import { Context } from "@azure/functions"
3-
import { NamedContext } from "./src/common/interfaces"
4-
import { helloFunction } from "./src/functions/hello"
5-
import { goodbyeFunction } from "./src/functions/goodbye"
3+
import { NamedContext } from "./common/interfaces"
4+
import { helloFunction } from "./functions/hello"
5+
import { goodbyeFunction } from "./functions/goodbye"
66
var cookieParser = require("cookie-parser");
77

88
const app = new FunctionApp();
@@ -12,7 +12,8 @@ app.function(helloFunction)
1212
.function(goodbyeFunction);
1313

1414
app.pre(async (context: Context) => {
15-
context.log("Processing request");
15+
context.log('~~ wow middleware ~~');
16+
context.log(`~~ invocation id = ${context.invocationId} ~~`);
1617
});
1718

1819
app.pre(async (context: NamedContext) => {

0 commit comments

Comments
 (0)