Add comments

This commit is contained in:
Apher 2026-06-28 21:46:37 +00:00
parent de6eda5a8a
commit bbeb518e66

View File

@ -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;