19 lines
400 B
JavaScript
19 lines
400 B
JavaScript
const Joi = require('joi');
|
|
const controller = require('../controllers/publicVisitorTheme.controller');
|
|
|
|
module.exports = [
|
|
{
|
|
method: 'GET',
|
|
path: '/api/public/visitor-theme/{id}',
|
|
options: {
|
|
auth: false,
|
|
validate: {
|
|
params: Joi.object({
|
|
id: Joi.string().hex().min(24).max(64).required(),
|
|
}),
|
|
},
|
|
handler: controller.get,
|
|
},
|
|
},
|
|
];
|