title: The this.http.post() gives a 404 (Not Found) error
body: <p>I'm currently trying to make a create function(to make a quote) with a server in angular.
  So i made a form with an input in the html file.</p>
  <pre><code>&lt;form [formGroup]=&quot;addquoteform&quot; (submit)=&quot;createquote()&quot;&gt;
      &lt;p&gt;
          &lt;mat-form-field appearance=&quot;outline&quot;&gt;
              &lt;mat-label&gt;quote&lt;/mat-label&gt;
              &lt;input matInput placeholder=&quot;Placeholder&quot; formControlName=&quot;quote&quot;&gt;
              &lt;mat-icon matSuffix&gt;sentiment_very_satisfied&lt;/mat-icon&gt;
          &lt;/mat-form-field&gt;
      &lt;/p&gt;
      &lt;p&gt;
          &lt;button mat-raised-button color=&quot;primary&quot;&gt;Submit&lt;/button&gt;
      &lt;/p&gt;
  &lt;/form&gt;
  </code></pre>
  <p>Then I made the function in the .ts file.</p>
  <pre><code>createquote(){
      this.dbService.addquote(this.addquoteform.value)
      .subscribe(data =&gt; {
        console.log(&quot;new quote&quot;)
      }, err =&gt; {
        console.log(err);
      })
    }
  </code></pre>
  <p>And then I made the quote in server/quote.ts</p>
  <pre><code>interface QuoteData {
      quote : string;
  }
  
  export interface quote extends  QuoteData{
  
  }
  </code></pre>
  <p>Then in the services/dbService.ts file I made the this.http.post()</p>
  <pre><code>addquote(quoteObj: any) {
          return this.http.post(this.baseUrl + 'quote', quoteObj);
      }
  </code></pre>
  <p>But the last one doesn't work.
  All I get is the error:
  <code>POST http://localhost:4200/quote 404 (Not Found)</code>
  I tried changing the link but nothing seems to help.
  Any idea what could be causing this?</p>