Accessing app resources from function

I have some resources that are published using resources section in my manifest file. How do I read those files when necessary from my forge function?

Hi @mdulin,

I think, to answer your question I need a little more information.

Are you building an app with Custom UI or UI Kit?

What are the resources you’re trying to access?

Cheers!
Mel

Hello Mel,

I’m writing a Custom UI app.

Here is an excerpt from my manifest.yml:

modules:
  consumer:
    - key: exportTaskQueueConsumer
      queue: exportTaskQueue
      resolver:
        function: processExportTaskQueue
        method: consume
  function:
    - key: processExportTaskQueue
      handler: processExportTaskQueue.handler
      timeoutSeconds: 900
resources:
  - path: files
    key: files

I want to access files resource and read files from my backend function processExportTaskQueue.

Best,
Marat