Skip to content

Commit

Permalink
add Filter etc to config after change to Restier 1.0.0 beta
Browse files Browse the repository at this point in the history
  • Loading branch information
mirsking committed Sep 7, 2016
1 parent 3c4d1af commit 4587b3f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using System;
using System.Web.Http;
using System.Web.OData;
using System.Web.OData.Extensions;
Expand All @@ -23,9 +24,12 @@ public static void Register(HttpConfiguration config)
public static async void RegisterTrippin(
HttpConfiguration config, HttpServer server)
{
// enable query options for all properties
config.Filter().Expand().Select().OrderBy().MaxTop(null).Count();
config.SetTimeZoneInfo(TimeZoneInfo.Utc);
await config.MapRestierRoute<TrippinApi>(
"TrippinApi",
"api/Trippin",
"api/Trippin",
new RestierBatchHandler(server));
}
}
Expand Down

0 comments on commit 4587b3f

Please sign in to comment.