File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
StarterTemplates/WinServiceAppHost Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 88
99namespace ServiceStack . MovieRest
1010{
11- [ RestService ( "/reset-movies" ) ]
11+ [ RestService ( "/reset-movies" , "GET,POST ") ]
1212 [ Description ( "Resets the database back to the original Top 5 movies." ) ]
1313 public class ResetMovies { }
1414 public class ResetMoviesResponse { }
@@ -26,7 +26,12 @@ public class ResetMoviesService : RestServiceBase<ResetMovies>
2626
2727 public IDbConnectionFactory DbFactory { get ; set ; }
2828
29- public override object OnPost ( ResetMovies request )
29+ public override object OnGet ( ResetMovies request )
30+ {
31+ return OnPost ( request ) ;
32+ }
33+
34+ public override object OnPost ( ResetMovies request )
3035 {
3136 DbFactory . Exec ( dbCmd =>
3237 {
Original file line number Diff line number Diff line change 3636 <Reference Include =" ServiceStack" >
3737 <HintPath >..\..\..\lib\ServiceStack.dll</HintPath >
3838 </Reference >
39+ <Reference Include =" ServiceStack.Interfaces" >
40+ <HintPath >..\..\..\lib\ServiceStack.Interfaces.dll</HintPath >
41+ </Reference >
3942 <Reference Include =" System" />
4043 <Reference Include =" System.Configuration.Install" />
4144 <Reference Include =" System.Core" />
7881 </ItemGroup >
7982 <ItemGroup >
8083 <Content Include =" default.htm" >
81- <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
82- </Content >
84+ <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
85+ </Content >
8386 </ItemGroup >
8487 <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
8588 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
You can’t perform that action at this time.
0 commit comments