Skip to main content

2 posts tagged with "video"

View All Tags

· One min read
Josh Twist

Length: 3 minutes

In this video we see just how programmable the Zuplo gateway is by going full tilt and building a simple API using Function Handlers 🤯

We also look at wildcard routes like so /(.*).

Here's the code from the echo API we create

import { ZuploContext, ZuploRequest } from "@zuplo/runtime";

export default async function (request: ZuploRequest, context: ZuploContext) {
const { url, query } = request;

const body = await request.text();

return { url, query, body };
}

· One min read
Josh Twist

Length: 3 minutes

In this video we show you just how easy it is to proxy an API with Zuplo and add rate-limiting. We also prettify the URL of our ugly backend to make things feel a little more modern and current.

There was no code in this demo but we did do a URL rewrite as follows

https://ecommerce-legacy.zuplo.io/objects?type=products&id=${params.productId}