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
[package] | |
name = "online" | |
version = "0.2.0" | |
authors = ["Jesús Rubio <[email protected]>"] | |
edition = "2018" | |
documentation = "https://docs.rs/online" | |
include = ["src/**/*", "Cargo.toml"] | |
description = "📶 Library to check your Internet connectivity" | |
repository = "https://github.com/jesusprubio/online.git" | |
readme = "README.md" |
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'); | |
module.exports = async () => { | |
const res = motivation.get(); | |
strapi.log.info(`\n${res.text} (${res.author})\n`); | |
}; |
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. | |
*/ |
OlderNewer