export default (plugin) => {
plugin.controllers.user.testRoute = (ctx) => {
ctx.body = {
message: “Hello World!”,
};
};
plugin.routes[“content-api”].routes.push({
method: “GET”,
path: “/user/test-route”,
handler: “user.testRoute”,
config: {
prefix: “”,
},
});
return plugin;
};
I am doing like thi but there is not route by typeRoute name.
