<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Having private libs&#x2F;utils]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I think I remember that it's not something possible, but I want to be sure :</p>
<p dir="auto">Is there any way to have private code/libs/utils callable from the API routes ?</p>
<p dir="auto">Basic exemple why :<br />
Let's say I want to check always the same thing, in 50 roads, like the origin and the credentials of this origin to use a given endpoint. Right now I have three options :</p>
<ul>
<li>Public code in the CloudBackend folder through the Code Editor that I require-remote (so it's public)</li>
<li>Putting that code in all my routes... which is a bother if I want to change it</li>
<li>Having a "proxy" route that will do this check first and call the road itself, which is one "useless" API call (and other little issues)</li>
</ul>
<p dir="auto">Thank you,<br />
Best regards,</p>
]]></description><link>https://community.appdrag.com/topic/874/having-private-libs-utils</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 08:58:57 GMT</lastBuildDate><atom:link href="https://community.appdrag.com/topic/874.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Jun 2021 05:21:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Having private libs&#x2F;utils on Wed, 16 Jun 2021 12:45:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/2">@Wassim</a> thanks for you answer.</p>
<p dir="auto">I agree that the file will be tricky to find but I still try to the basic "even hard to find it shouldn't be public when it's related to security", and it's literally for all ma security checks <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f615.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--confused" title=":/" alt="😕" /></p>
<p dir="auto">I thought about the other solution but I'm trying to develop something very easy to maintain for any developers even with a low formation for my clients, your solution itself is great and easy to use, I don't want to complexify it.</p>
<p dir="auto">I think the third solution I will retain is to create a proxy route that will take care of this common code then call the adequate resource and return the result.</p>
<p dir="auto">I think having private code outside of a route but still on AppDrag is the only major feature I miss right now !</p>
<p dir="auto">I haven't said it in a while: Thanks for AppDrag in general, I'm really having a great time on it <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
<p dir="auto">See you soon,<br />
Best regards,</p>
]]></description><link>https://community.appdrag.com/post/3552</link><guid isPermaLink="true">https://community.appdrag.com/post/3552</guid><dc:creator><![CDATA[Pierre SULPICE]]></dc:creator><pubDate>Wed, 16 Jun 2021 12:45:47 GMT</pubDate></item><item><title><![CDATA[Reply to Having private libs&#x2F;utils on Mon, 14 Jun 2021 06:03:39 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
With the require-remote solution the file is public but can be impossible to find if put in a very complex path.<br />
Another solution would be not to use the online code editor from a Cloud API Function but build yours outside and import the ZIP into your API function. This way you have more options to reuse private code.</p>
]]></description><link>https://community.appdrag.com/post/3542</link><guid isPermaLink="true">https://community.appdrag.com/post/3542</guid><dc:creator><![CDATA[Wassim]]></dc:creator><pubDate>Mon, 14 Jun 2021 06:03:39 GMT</pubDate></item></channel></rss>