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)
2424 // Web API routes
2525 config . MapHttpAttributeRoutes ( ) ;
2626
27+ config . Routes . MapHttpRoute (
28+ name : "Home" ,
29+ routeTemplate : "" ,
30+ defaults : new { controller = "Home" }
31+ ) ;
32+
2733 config . Routes . MapHttpRoute (
2834 name : "Functions" ,
2935 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 228228 <Compile Include =" App_Start\WebApiConfig.cs" />
229229 <Compile Include =" Controllers\AdminController.cs" />
230230 <Compile Include =" Controllers\FunctionsController.cs" />
231+ <Compile Include =" Controllers\HomeController.cs" />
231232 <Compile Include =" Filters\AuthorizationLevelAttribute.cs" />
232233 <Compile Include =" FunctionSecrets.cs" />
233234 <Compile Include =" Global.asax.cs" >
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ public ScriptHost Instance
5757 _config . HostConfig = new JobHostConfiguration ( ) ;
5858 ScriptHost newInstance = ScriptHost . Create ( _config ) ;
5959
60+ // TODO: consider using StartAsync here to speed up
61+ // restarts.
6062 newInstance . Start ( ) ;
6163 lock ( _liveInstances )
6264 {
You can’t perform that action at this time.
0 commit comments