UNPKG

@waline/vercel

Version:

vercel server for waline comment system

28 lines (25 loc) 463 B
const Base = require('./base.js'); module.exports = class extends Base { getAction() { this.rules = { path: { array: true }, type: { array: true, default: ['time'] }, }; } postAction() { this.rules = { path: { string: true, }, type: { string: true, default: 'time', }, action: { string: true, in: ['inc', 'desc'], default: 'inc', }, }; } };