Line | |
---|
1 | using System.Web.Mvc;
|
---|
2 | using HeuristicLab.Services.WebApp.Configs;
|
---|
3 |
|
---|
4 | namespace 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.