Skip to content

Commit a1dad13

Browse files
authored
Merge pull request #331 from pluginpal/feature/expose-url-alias-crud-endpoints
URL alias crud endpoints
2 parents d9e0c1d + 85fabf6 commit a1dad13

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.changeset/wise-grapes-jump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"strapi-plugin-webtools": minor
3+
---
4+
5+
feat: expose the URL alias crud endpoints to the content-api to allow for URL alias management from external systems

packages/core/server/routes/index.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,38 @@ export default {
1010
policies: [],
1111
},
1212
},
13+
{
14+
method: 'GET',
15+
path: '/url-alias/:id',
16+
handler: 'url-alias.findOne',
17+
config: {
18+
policies: [],
19+
},
20+
},
21+
{
22+
method: 'DELETE',
23+
path: '/url-alias/:id',
24+
handler: 'url-alias.delete',
25+
config: {
26+
policies: [],
27+
},
28+
},
29+
{
30+
method: 'PUT',
31+
path: '/url-alias/:id',
32+
handler: 'url-alias.update',
33+
config: {
34+
policies: [],
35+
},
36+
},
37+
{
38+
method: 'POST',
39+
path: '/url-alias',
40+
handler: 'url-alias.create',
41+
config: {
42+
policies: [],
43+
},
44+
},
1345
{
1446
method: 'GET',
1547
path: '/router',

0 commit comments

Comments
 (0)