nuxt-multi-cache
Version:
SSR route, component and data cache for Nuxt.js
10 lines (9 loc) • 311 B
TypeScript
import type { H3Event } from 'h3';
import type { Storage } from 'unstorage';
export declare function getCacheInstance(event: H3Event): Storage;
/**
* Check the authorization for API endpoints.
*
* Throws an error if authorization failed.
*/
export declare function checkAuth(event: H3Event): Promise<void>;