start spotlight output

This commit is contained in:
2015-05-04 23:59:10 +02:00
parent 44de291149
commit 739d90daba
3 changed files with 8 additions and 2 deletions
@@ -48,6 +48,7 @@
<Compile Include="StoreImageType.cs" /> <Compile Include="StoreImageType.cs" />
<Compile Include="StoreReviewSorting.cs" /> <Compile Include="StoreReviewSorting.cs" />
<Compile Include="StoreSearchResults.cs" /> <Compile Include="StoreSearchResults.cs" />
<Compile Include="StoreSpotlightType.cs" />
<Compile Include="StoreType.cs" /> <Compile Include="StoreType.cs" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
+3 -2
View File
@@ -14,9 +14,10 @@ namespace OnePeek.WebConsole.Modules
Configuration.UseFiveStarSystem = true; Configuration.UseFiveStarSystem = true;
OnePeekApi api = new OnePeekApi(); OnePeekApi api = new OnePeekApi();
Get["/"] = ctx => Get["/", true] = async (ctx, token) =>
{ {
return View["Index"]; StoreSearchResults result = await api.GetSpotlight(StoreSpotlightType.Apps, StoreType.WindowsPhone8, StoreCultureType.EN_US);
return View["Index", result];
}; };
@@ -3,6 +3,10 @@
Layout = "_Layout.cshtml"; Layout = "_Layout.cshtml";
} }
<div class="spotlight">
</div>
<form id="apiquery" action="/meta" method="get"> <form id="apiquery" action="/meta" method="get">
<div class="large-12 columns"> <div class="large-12 columns">
<h3>API QUERY</h3> <h3>API QUERY</h3>