You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// /routes/profile/index.jsconstconfig=require('../../config')module.exports=(server)=>{varPATH=config.basePath('/profile/:id')// setup the method handlers here. server.get({path: PATH,version: '1.0.0'},require('./v1'))server.post({path: PATH,version: '1.0.0'},require('./v1'))// the handlers does not have to be 1 file. for instance, you can use v1-get.js for the get method and v1-post.js for th post method.}
how to create request with different methods or request with id to one path?
The text was updated successfully, but these errors were encountered: