title: Micronaut: Make files inside resources publicly available
body: <p>I have a small micronaut application where I need to serve files inside <code>resources</code>. Those files should be publicly accessible, so if I enter the url for that file, it would open directly in the browser (they are small images).</p>
  <p>I tried using</p>
  <pre><code>micronaut:
    application:
      name: myapp
    router.static-resources:
      enabled: true
      paths: classpath:data
      mapping: &quot;/**&quot;
  </code></pre>
  <p>but the response is always the same:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;message&quot;: &quot;Page Not Found&quot;,
    &quot;_links&quot;: {
      &quot;self&quot;: {
        &quot;href&quot;: &quot;/data/per.svg&quot;,
        &quot;templated&quot;: false
      }
    }
  }
  </code></pre>
  <p>What additional configuration do I need?</p>