diff --git a/app/templates/server/api/controllers/examples/controller.ts b/app/templates/server/api/controllers/examples/controller.ts index 0ed2f97..0ee56e1 100644 --- a/app/templates/server/api/controllers/examples/controller.ts +++ b/app/templates/server/api/controllers/examples/controller.ts @@ -17,7 +17,7 @@ export class Controller { ExamplesService.create(req.body.name).then(r => res .status(201) - .location(`/api/v1/examples/${r.id}`) + .location(`<%= apiRoot %>/examples/${r.id}`) .json(r), ); }