UNPKG

@analogjs/router

Version:

Filesystem-based routing for Angular

26 lines (22 loc) 850 B
import { InjectionToken, inject } from '@angular/core'; const REQUEST = new InjectionToken('@analogjs/router Server Request'); const RESPONSE = new InjectionToken('@analogjs/router Server Response'); const BASE_URL = new InjectionToken('@analogjs/router Base URL'); const API_PREFIX = new InjectionToken('@analogjs/router API Prefix'); function injectRequest() { return inject(REQUEST, { optional: true }); } function injectResponse() { return inject(RESPONSE, { optional: true }); } function injectBaseURL() { return inject(BASE_URL, { optional: true }); } function injectAPIPrefix() { return inject(API_PREFIX); } /** * Generated bundle index. Do not edit. */ export { API_PREFIX, BASE_URL, REQUEST, RESPONSE, injectAPIPrefix, injectBaseURL, injectRequest, injectResponse }; //# sourceMappingURL=analogjs-router-tokens.mjs.map