1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-28 13:38:08 +09:00
hotomoe/src/server/api/endpoint.ts

61 lines
1.7 KiB
TypeScript
Raw Normal View History

2018-07-16 03:25:35 +09:00
export default interface IEndpoint {
/**
*
*/
name: string;
/**
*
* false
*/
requireCredential?: boolean;
/**
*
*
* withCredential false
*/
limit?: {
/**
*
*/
key?: string;
/**
* (ms)
* max
*/
duration?: number;
/**
* durationで指定した期間内にいくつまでリクエストできるのか
* duration
*/
max?: number;
/**
* (ms)
*/
minInterval?: number;
};
/**
*
* false
*/
withFile?: boolean;
/**
*
* false
*/
secure?: boolean;
/**
*
*
*/
kind?: string;
}