@itd-api/cache / cacheRoute
Function: cacheRoute()
function cacheRoute(method, path):
| {
category: "auth";
id: "auth.sessions";
method: "GET";
path: RegExp;
}
| {
category: "users";
id: "users.me";
method: "GET";
path: RegExp;
}
| {
category: "users";
id: "users.checkUsername";
method: "GET";
path: RegExp;
}
| {
category: "users";
id: "users.search";
method: "GET";
path: RegExp;
}
| {
category: "users";
id: "users.whoToFollow";
method: "GET";
path: RegExp;
}
| {
category: "users";
id: "users.topClans";
method: "GET";
path: RegExp;
}
| {
category: "users";
id: "users.followers";
method: "GET";
path: RegExp;
}
| {
category: "users";
id: "users.following";
method: "GET";
path: RegExp;
}
| {
category: "users";
id: "users.blocked";
method: "GET";
path: RegExp;
}
| {
category: "users";
id: "users.getPrivacy";
method: "GET";
path: RegExp;
}
| {
category: "users";
id: "users.pins";
method: "GET";
path: RegExp;
}
| {
category: "users";
id: "users.followStatus";
method: "POST";
path: RegExp;
}
| {
category: "users";
id: "users.get";
method: "GET";
path: RegExp;
}
| {
category: "posts";
id: "posts.list";
method: "GET";
path: RegExp;
}
| {
category: "posts";
id: "posts.likedByUser";
method: "GET";
path: RegExp;
}
| {
category: "posts";
id: "posts.byUser";
method: "GET";
path: RegExp;
}
| {
category: "posts";
id: "posts.comments";
method: "GET";
path: RegExp;
}
| {
category: "posts";
id: "posts.stats";
method: "POST";
path: RegExp;
}
| {
category: "posts";
id: "posts.get";
method: "GET";
path: RegExp;
}
| {
category: "comments";
id: "comments.replies";
method: "GET";
path: RegExp;
}
| {
category: "notifications";
id: "notifications.list";
method: "GET";
path: RegExp;
}
| {
category: "notifications";
id: "notifications.count";
method: "GET";
path: RegExp;
}
| {
category: "notifications";
id: "notifications.getSettings";
method: "GET";
path: RegExp;
}
| {
category: "hashtags";
id: "hashtags.search";
method: "GET";
path: RegExp;
}
| {
category: "hashtags";
id: "hashtags.trending";
method: "GET";
path: RegExp;
}
| {
category: "hashtags";
id: "hashtags.posts";
method: "GET";
path: RegExp;
}
| {
category: "search";
id: "search.all";
method: "GET";
path: RegExp;
}
| {
category: "files";
id: "files.get";
method: "GET";
path: RegExp;
}
| {
category: "subscription";
id: "subscription.status";
method: "GET";
path: RegExp;
}
| {
category: "subscription";
id: "subscription.methods";
method: "GET";
path: RegExp;
}
| {
category: "verification";
id: "verification.status";
method: "GET";
path: RegExp;
}
| {
category: "platform";
id: "platform.changelog";
method: "GET";
path: RegExp;
}
| {
category: "platform";
id: "platform.announcements";
method: "GET";
path: RegExp;
}
| {
category: "platform";
id: "platform.portal";
method: "GET";
path: RegExp;
}
| {
category: "platform";
id: "platform.status";
method: "GET";
path: RegExp;
}
| undefined;Defined in: packages/cache/src/routes.ts:193
Находит читающий маршрут по HTTP-методу и пути.
Parameters
method
string
path
string
Returns
| { category: "auth"; id: "auth.sessions"; method: "GET"; path: RegExp; } | { category: "users"; id: "users.me"; method: "GET"; path: RegExp; } | { category: "users"; id: "users.checkUsername"; method: "GET"; path: RegExp; } | { category: "users"; id: "users.search"; method: "GET"; path: RegExp; } | { category: "users"; id: "users.whoToFollow"; method: "GET"; path: RegExp; } | { category: "users"; id: "users.topClans"; method: "GET"; path: RegExp; } | { category: "users"; id: "users.followers"; method: "GET"; path: RegExp; } | { category: "users"; id: "users.following"; method: "GET"; path: RegExp; } | { category: "users"; id: "users.blocked"; method: "GET"; path: RegExp; } | { category: "users"; id: "users.getPrivacy"; method: "GET"; path: RegExp; } | { category: "users"; id: "users.pins"; method: "GET"; path: RegExp; } | { category: "users"; id: "users.followStatus"; method: "POST"; path: RegExp; } | { category: "users"; id: "users.get"; method: "GET"; path: RegExp; } | { category: "posts"; id: "posts.list"; method: "GET"; path: RegExp; } | { category: "posts"; id: "posts.likedByUser"; method: "GET"; path: RegExp; } | { category: "posts"; id: "posts.byUser"; method: "GET"; path: RegExp; } | { category: "posts"; id: "posts.comments"; method: "GET"; path: RegExp; } | { category: "posts"; id: "posts.stats"; method: "POST"; path: RegExp; } | { category: "posts"; id: "posts.get"; method: "GET"; path: RegExp; } | { category: "comments"; id: "comments.replies"; method: "GET"; path: RegExp; } | { category: "notifications"; id: "notifications.list"; method: "GET"; path: RegExp; } | { category: "notifications"; id: "notifications.count"; method: "GET"; path: RegExp; } | { category: "notifications"; id: "notifications.getSettings"; method: "GET"; path: RegExp; } | { category: "hashtags"; id: "hashtags.search"; method: "GET"; path: RegExp; } | { category: "hashtags"; id: "hashtags.trending"; method: "GET"; path: RegExp; } | { category: "hashtags"; id: "hashtags.posts"; method: "GET"; path: RegExp; } | { category: "search"; id: "search.all"; method: "GET"; path: RegExp; } | { category: "files"; id: "files.get"; method: "GET"; path: RegExp; } | { category: "subscription"; id: "subscription.status"; method: "GET"; path: RegExp; } | { category: "subscription"; id: "subscription.methods"; method: "GET"; path: RegExp; } | { category: "verification"; id: "verification.status"; method: "GET"; path: RegExp; } | { category: "platform"; id: "platform.changelog"; method: "GET"; path: RegExp; } | { category: "platform"; id: "platform.announcements"; method: "GET"; path: RegExp; } | { category: "platform"; id: "platform.portal"; method: "GET"; path: RegExp; } | { category: "platform"; id: "platform.status"; method: "GET"; path: RegExp; } | undefined