Skip to content

Function routing issue same path and different http methods #340

@ZaouiAmine

Description

@ZaouiAmine

The steps leading to this issue are :

  1. creating a project 🟢
  2. creating a website (vue) 🟢
  3. creating a simple storage 🟢
  4. creating an upload function 🟢
  5. creating a download function 🔴

when creating two functions with different http methods (POST,GET) with the same path (ex:"/api/store") like in here .

  • the POST function works fine with curl
  • the GET function does not , and it returns
Image

However , creating a new method with a different name , path and entry-point but with the same code , works fine .

Image

Further more ,

  • having a website at ("/") path routes all paths ("/*") except created function paths to the website .
  • having a website at ("/any-path") does not .

(ex: "/api/gibberrish" ---------- routes back to -------> "/")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions