Created
December 16, 2019 16:16
-
-
Save jesusprubio/ee9250c51547526ffbefa6d34c0d504a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const motivation = require('motivation'); | |
/** | |
* StrapiPluginFortune.js controller | |
* | |
* @description: A set of functions called "actions" of the `strapi-plugin-fortune` plugin. | |
*/ | |
module.exports = { | |
index: async (ctx) => { | |
ctx.send(motivation.get()); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment