Repository URL to install this package:
|
Version:
0.0.15 ▾
|
import { Request as ExpressRequest, Response as ExpressResponse, NextFunction } from 'express';
declare function routingMiddleware(req: ExpressRequest, res: ExpressResponse, next: NextFunction): void;
/**
* @todo 1. this won't work on the very first request to the server, but every request after will
* - we should persist it to JSON (as in graphql)
* - we should do an initial request using puppeteer post deploy (_only if we do not have the ENV value_)
* 2. the conditionals here that check whether it is localhost or remote
* - I need food, it's been ~11 hours straight.
* - remember to check this on `/` and on a route like `/category/fashionmenlongsleeves`
* 3. write a test for this
*/
declare function miniRoutingMiddleware(req: ExpressRequest, res: ExpressResponse, next: NextFunction): void;
export { miniRoutingMiddleware };
export { routingMiddleware };