-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathStatsApp.cs
More file actions
33 lines (29 loc) · 893 Bytes
/
StatsApp.cs
File metadata and controls
33 lines (29 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System.Web.Mvc;
using MrCMS.Apps;
using MrCMS.Web.Apps.Stats.Controllers;
using MrCMS.Web.Apps.Stats.Filters;
using Ninject;
namespace MrCMS.Web.Apps.Stats
{
public class StatsApp : MrCMSApp
{
protected override void RegisterApp(MrCMSAppRegistrationContext context)
{
context.MapRoute("Legacy Analytics handler", "analytics/legacy-log-page-view",
new { controller = "Analytics", action = "LogPageView" },
new[] { typeof(AnalyticsController).Namespace });
}
public override string AppName
{
get { return "Stats"; }
}
public override string Version
{
get { return "0.1"; }
}
protected override void RegisterServices(IKernel kernel)
{
GlobalFilters.Filters.Add(new AnalyticsSessionFilter());
}
}
}