File tree Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ public static void Register(HttpConfiguration config)
24
24
// Web API routes
25
25
config . MapHttpAttributeRoutes ( ) ;
26
26
27
+ config . Routes . MapHttpRoute (
28
+ name : "Home" ,
29
+ routeTemplate : "" ,
30
+ defaults : new { controller = "Home" }
31
+ ) ;
32
+
27
33
config . Routes . MapHttpRoute (
28
34
name : "Functions" ,
29
35
routeTemplate : "{*uri}" ,
Original file line number Diff line number Diff line change
1
+ // Copyright (c) .NET Foundation. All rights reserved.
2
+ // Licensed under the MIT License. See License.txt in the project root for license information.
3
+
4
+ using System . Net ;
5
+ using System . Net . Http ;
6
+ using System . Web . Http ;
7
+
8
+ namespace WebJobs . Script . WebHost . Controllers
9
+ {
10
+ public class HomeController : ApiController
11
+ {
12
+ public HttpResponseMessage Get ( )
13
+ {
14
+ // TODO: Eventually we'll want to consider returning a content
15
+ // page
16
+ return new HttpResponseMessage ( HttpStatusCode . NoContent ) ;
17
+ }
18
+ }
19
+ }
Original file line number Diff line number Diff line change 228
228
<Compile Include =" App_Start\WebApiConfig.cs" />
229
229
<Compile Include =" Controllers\AdminController.cs" />
230
230
<Compile Include =" Controllers\FunctionsController.cs" />
231
+ <Compile Include =" Controllers\HomeController.cs" />
231
232
<Compile Include =" Filters\AuthorizationLevelAttribute.cs" />
232
233
<Compile Include =" FunctionSecrets.cs" />
233
234
<Compile Include =" Global.asax.cs" >
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ public ScriptHost Instance
57
57
_config . HostConfig = new JobHostConfiguration ( ) ;
58
58
ScriptHost newInstance = ScriptHost . Create ( _config ) ;
59
59
60
+ // TODO: consider using StartAsync here to speed up
61
+ // restarts.
60
62
newInstance . Start ( ) ;
61
63
lock ( _liveInstances )
62
64
{
You can’t perform that action at this time.
0 commit comments