Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HiveStatistics/sources/HeuristicLab.Services.WebApp/Controllers/AppController.cs @ 12419

Last change on this file since 12419 was 12419, checked in by dglaser, 9 years ago

#2388: Added WebApp and WebApp.Status plugin

File size: 916 bytes
Line 
1using System.Web.Mvc;
2
3namespace HeuristicLab.Services.WebApp.Controllers {
4
5  public class AppController : Controller {
6
7    public ActionResult Index() {
8      if (!Request.Path.EndsWith("/")) {
9        return RedirectPermanent(Request.Url + "/");
10      }
11      return View("~/WebApp/shared/layout/layout.cshtml");
12    }
13
14    public ActionResult Empty() {
15      return View("~/WebApp/shared/restricted/empty.cshtml");
16    }
17
18    public ActionResult LoadSharedView(string directory, string view, string dateTime) {
19      // dateTime is optional to avoid browser caching
20      return View(string.Format("~/WebApp/shared/{0}/{1}", directory, view));
21    }
22
23    public ActionResult LoadPluginView(string plugin, string view, string dateTime) {
24      // dateTime is optional to avoid browser caching
25      return View(string.Format("~/WebApp/plugins/{0}/{1}", plugin, view));
26    }
27
28  }
29}
Note: See TracBrowser for help on using the repository browser.