Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Commit b6e8e3e

Browse files
chore(readme) formatting (#11)
* chore(README): format examples
1 parent 16fb97e commit b6e8e3e

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

README.md

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,19 @@ A sample configuration
3838

3939
```javascript
4040
module.exports = ({ env }) => ({
41-
slugify: {
42-
enabled: true,
43-
config: {
44-
contentTypes: {
45-
article: {
46-
field: 'slug',
47-
references: 'title',
48-
},
49-
},
50-
},
51-
},
41+
// ...
42+
slugify: {
43+
enabled: true,
44+
config: {
45+
contentTypes: {
46+
article: {
47+
field: 'slug',
48+
references: 'title',
49+
},
50+
},
51+
},
52+
},
53+
// ...
5254
});
5355
```
5456

@@ -126,16 +128,16 @@ If an article with the slug of `lorem-ipsum-dolor` exists the response will look
126128

127129
```json
128130
{
129-
"data": {
130-
"id": 1,
131-
"attributes":{
132-
"title": "lorem ipsum dolor",
133-
"slug": "lorem-ipsum-dolor",
134-
"createdAt": "2022-02-17T01:49:31.961Z",
135-
"updatedAt": "2022-02-17T03:47:09.950Z",
136-
"publishedAt": null
137-
}
138-
}
131+
"data": {
132+
"id": 1,
133+
"attributes":{
134+
"title": "lorem ipsum dolor",
135+
"slug": "lorem-ipsum-dolor",
136+
"createdAt": "2022-02-17T01:49:31.961Z",
137+
"updatedAt": "2022-02-17T03:47:09.950Z",
138+
"publishedAt": null
139+
}
140+
}
139141
}
140142
```
141143

@@ -145,8 +147,8 @@ To be inline with Strapi's default behavior for single types if an article with
145147

146148
```json
147149
{
148-
"data": null,
149-
"error": {
150+
"data": null,
151+
"error": {
150152
"status": 404,
151153
"name": "NotFoundError",
152154
"message": "Not Found",

0 commit comments

Comments
 (0)