mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 09:00:19 +00:00
10 lines
456 B
Markdown
Executable File
10 lines
456 B
Markdown
Executable File
# Services
|
|
|
|
Services can be thought of as libraries which contain functions that you might want to use in many places of your application. For example, you might have an `sendEmail` service which wraps some default email message boilerplate code that you would want to use in many parts of your application.
|
|
|
|
For example you can generate a service named `sendEmail` for the `email` API using the CLI:
|
|
|
|
```bash
|
|
$ strapi generate:service sendEmail email
|
|
```
|