mirror of
https://github.com/strapi/strapi.git
synced 2025-07-24 17:40:18 +00:00
12 lines
471 B
Markdown
12 lines
471 B
Markdown
![]() |
---
|
||
|
title: 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
|
||
|
```
|