view SSRS/SSRS.Web/Global.asax.cs @ 116:d3380f499575

requires layout tidy up
author stevenh7776
date Sun, 20 May 2012 18:48:00 +0100
parents e51a6af1c98d
children
line wrap: on
line source

using System;
using System.Web;
using Funq;
using SSRS.Services;
using SSRS.Services.DTO;
using ServiceStack.WebHost.Endpoints;

namespace SSRS.Web
{
    public class AppHost : AppHostBase
    {
        public AppHost() : 
            base("REST Services", 
            typeof(ReportsService).Assembly) {}

        public override void Configure(Container container)
        {
            Routes.Add<ReportsRequest>("reports", "POST");
        }
    }

    public class Global : HttpApplication
    {
        protected void Application_Start(object sender, EventArgs e)
        {
            new AppHost().Init();
        }
    }
}