summaryrefslogtreecommitdiffstats
path: root/src/OpenID/OpenIdRelyingPartyMvc/Controllers/HomeController.cs
blob: d26cdd9dc14d99070c09456cc52d0be026605672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace OpenIdRelyingPartyMvc.Controllers {
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Web;
	using System.Web.Mvc;

	public class HomeController : Controller {
		public ActionResult Index() {
			Response.AppendHeader(
				"X-XRDS-Location",
				new Uri(Request.Url, Response.ApplyAppPathModifier("~/Home/xrds")).AbsoluteUri);
			return View("Index");
		}

		public ActionResult Xrds() {
			return View("Xrds");
		}
	}
}