UNPKG

@api.global/typedserver

Version:

A TypeScript-based project for easy serving of static files with support for live reloading, compression, and typed requests.

25 lines (24 loc) 1.25 kB
import * as plugins from '../plugins.js'; /** * Built-in routes controller for TypedServer * Handles robots.txt, manifest.json, sitemap, feed, appversion */ export declare class BuiltInRoutesController { private options; constructor(options: typeof BuiltInRoutesController.prototype.options); getRobots(ctx: plugins.smartserve.IRequestContext): Promise<Response>; getManifest(ctx: plugins.smartserve.IRequestContext): Promise<Response>; getSitemap(ctx: plugins.smartserve.IRequestContext): Promise<Response>; getSitemapNews(ctx: plugins.smartserve.IRequestContext): Promise<Response>; getFeed(ctx: plugins.smartserve.IRequestContext): Promise<Response>; getAppVersion(ctx: plugins.smartserve.IRequestContext): Promise<Response>; getSwDash(ctx: plugins.smartserve.IRequestContext): Promise<Response>; getSwDashMetrics(): Promise<Response>; getSwDashResources(): Promise<Response>; getSwDashEvents(): Promise<Response>; getSwDashEventsCount(): Promise<Response>; getSwDashCumulativeMetrics(): Promise<Response>; getSwDashSpeedtest(): Promise<Response>; getSwDashBundle(ctx: plugins.smartserve.IRequestContext): Promise<Response>; getServiceWorkerBundle(): Promise<Response>; }