Skip to content

Commit 2d2894e

Browse files
committed
Merge remote branch 'origin/master'
2 parents a7ec065 + 89b8b0b commit 2d2894e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/ServiceStack.MovieRest/ResetMovies.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace 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
{

src/StarterTemplates/WinServiceAppHost/WinServiceAppHost.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
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" />
@@ -78,8 +81,8 @@
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.

0 commit comments

Comments
 (0)