Created
December 7, 2016 10:53
-
-
Save squadwuschel/6e9b8dfcc5f83358de05b05fa70762db to your computer and use it in GitHub Desktop.
HomeController zum Laden einer Index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Angular2MitWebpack2.Controllers | |
{ | |
public class HomeController : Controller | |
{ | |
[AllowAnonymous] | |
public ActionResult Index() | |
{ | |
//die Index.html wird von WebPack in das Verzeichnis kopiert und die Standardroute | |
//lädt dann automatisch die index.html | |
return new FilePathResult("~/wwwroot/index.html", "text/html"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment