Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Custom javascript generation like Web API proxies #1618


User avatar
0
eggersa created

Since aspnetboilerplate automatically creates some of the javascript like Web API proxies, I was wondering if I can somehow inject my own javascript builder to create some javascript version of my C# enums to use on clientside?


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    You can do it similar to we do it for script generation. We do it here: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Web.Api/WebApi/Controllers/Dynamic/Scripting/AbpServiceProxiesController.cs#L43">https://github.com/aspnetboilerplate/as ... ler.cs#L43</a>

    Just a web api action which dynamically generates string and returns it as application/x-javascript