mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-13 03:29:46 +08:00
27 lines
617 B
JavaScript
27 lines
617 B
JavaScript
const Joi = require('joi');
|
|
|
|
// TODO: This is a placeholder
|
|
module.exports = (server) => {
|
|
server.route({
|
|
method: 'GET',
|
|
path: '/events',
|
|
config: {
|
|
description: 'Returns events.',
|
|
notes: 'Notes go here',
|
|
tags: ['events'],
|
|
validate: {
|
|
query: {
|
|
limit: Joi.number().integer().min(1).max(2000).default(100),
|
|
offset: Joi.number().integer().min(0).default(0),
|
|
view: Joi.string().valid('count'),
|
|
},
|
|
},
|
|
response: {
|
|
schema: Joi.array(),
|
|
},
|
|
},
|
|
handler: (request, reply) => {
|
|
reply('[]');
|
|
},
|
|
});
|
|
}
|