title: How can I call a specific function based on url in python web frameworks?
body: <p>I have developed a python application which takes in post variables and inserts data into postgresql. 
  Now I want to call specific function when we call a url.</p>
  
  <p>For example</p>
  
  <pre><code>if  I do
    curl -i http://127.0.0.1:5000/abc/cde
    it should call 
     def aaa()
    if curl -i http://127.0.0.1:5000/pqr/xyz
    it should call 
    def bbb()
  </code></pre>
  
  <p>is there a way to achieve that in python flask web frameworks ?</p>