App engine dispatch.yaml rest design

Im writing some rest API Services on the appegine in a different modules im also using Gin for routing.

I cant figur out the correct way to config my dispath.yaml file


  • url: "*/"
    module: default

  • url: "*/meal"
    module: meal

       //this will give me 404 
     	r.Handle("GET", "/meal/all", m.GetAllMeals) //get all meals
          r.Handle("GET", "/meal/:id", m.GetAllMealById) // get meal by id 
      http.Handle("/meal", r)

What is the proper way to configure the dispatch and the handler ?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.