Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

miragejs url parameters

this.get("/authors/:id", (schema, request) => {

  const id = request.params.id
  console.log( "Parameter :id has value", id );

})
Source by miragejs.com #
 
PREVIOUS NEXT
Tagged: #miragejs #url #parameters
ADD COMMENT
Topic
Name
2+6 =