0
chrisk created
Hi,
I'd like to ask how is that achieved in Abp that without adding controllers or routes it is possible to serve .cshtml files to client like '/App/Main/views/tenants/index.cshtml' Or in fact it does something similar to dynamic web api controller builder ?
I'm really curious and it would be handy to know how to apply it to projects that can not use Abp.
2 Answer(s)
-
0
Hi,
It is done here <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero-template/blob/master/src/AbpCompanyName.AbpProjectName.WebMpa/Abp/Framework/scripts/libs/angularjs/abp.ng.js#L127">https://github.com/aspnetboilerplate/mo ... ng.js#L127</a>.
Bacically, we load *.cshtml files using a controller.
-
0
Hi @ismcagdas
It makes perfect sense now :)
Thank you for that.