Free cookie consent management tool by TermsFeed Policy Generator

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

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

#2388: Added PluginManager and updated WebApp project

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