Skip to content
This repository was archived by the owner on Oct 7, 2018. It is now read-only.

Latest commit

 

History

History
17 lines (14 loc) · 538 Bytes

services.md

File metadata and controls

17 lines (14 loc) · 538 Bytes

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 Email service which wraps some default email message boilerplate code that you would want to use in many parts of your application.

Simply create a JavaScript file containing a function or an object into your ./api/services directory. Services are exposed at strapi.services.

module.exports = {
  functionName: function (options) {
    // ...
  }
};