UNPKG

@indiekit/indiekit

Version:

The little server that connects your website to the independent web

14 lines (12 loc) 460 B
export const get = async (request, response) => { const { name: client_name, url: client_uri } = request.app.locals.application; const { href: client_id } = new URL("id", client_uri); const { href: logo_uri } = new URL("assets/app-icon-512-any.png", client_uri); response.set("Cache-Control", "public, max-age=604800"); // 7 days return response.type("application/json").json({ client_id, client_name, client_uri, logo_uri, }); };