title: OctoberCMS Get Theme Settings data in Api/Web service
body: <p>I have created an OctoberCMS theme which works very well. And i have my current and activated <strong>theme.yaml</strong> like this.</p>
  
  <p><strong>theme.yaml</strong></p>
  
  <pre><code>name: 5P Group
  description: '5P Group OctoberCMS theme. A client website that contains preconfigured pages for static pages, a blog and client area..'
  author: Technobrave
  homepage: 'http://technobrave.com/'
  code: ''
  form:
      fields:
          site_logo:
              label: Site Logo
              comment: The website logo as it should appear on the front-end
              type: fileupload
              mode: image
              imageHeight: 32
              imageWidth: 443
  </code></pre>
  
  <p>As you can see i have added a <strong>Site Logo</strong> label through which admin can upload a logo and i will show it up front, which is working fine as i am able to show logo at front area like this.</p>
  
  <p><strong>menu.htm</strong></p>
  
  <pre><code>{% if this.theme.site_logo  %}
  &lt;img src="{{ this.theme.site_logo.path }}" width="100%" height="auto"/&gt;
  {% else %}
  &lt;img src="{{ 'assets/images/logo.png'|theme }}" width="100%" height="auto"/&gt;
  {% endif %}
  </code></pre>
  
  <p>But the thing is i am also creating an api and i want to do the same thing in that api. This is what i am trying.</p>
  
  <p><strong>routes.php</strong></p>
  
  <pre><code>    use System\Classes\SettingsManager;
  
      /* API to get Website Logo Dynamically Starts */
  
      Route::post('/getWebsiteLogo', function () 
      {
          $settings = Settings::instance();
  
          print_r($settings);
  
  
  
      });
      /* API to get Website Logo Dynamically Ends */
  </code></pre>
  
  <p>But i am having an error saying  </p>
  
  <blockquote>
    <p>Class 'Settings' not found</p>
  </blockquote>
  
  <p>Can someone guide me or suggest me how can i accomplish the same thing, or say how to get the dynamic website logo in one of my apis ? </p>
  
  <p>Thanks</p>