Add comments
This commit is contained in:
parent
de6eda5a8a
commit
bbeb518e66
@ -4,6 +4,7 @@ const redis = models.redis;
|
||||
const {sequelize, Sequelize} = db;
|
||||
const Intent = db.intent;
|
||||
|
||||
// Get all intents
|
||||
exports.getAllIntents = async (req, res) => {
|
||||
try {
|
||||
const intents = await Intent.findAll();
|
||||
@ -16,6 +17,7 @@ exports.getAllIntents = async (req, res) => {
|
||||
}
|
||||
};
|
||||
|
||||
// Get intent command (for now by description)
|
||||
exports.getIntentCommand = async (req, res) => {
|
||||
try {
|
||||
const {text, device_id} = req.body;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user