import * as cloud from "@pulumi/cloud" ; import { Output } from "@pulumi/pulumi" ; const api = new cloud . API ( "examples-test" ) ; api . get ( "/test1.txt" , ( req , res ) => { res . setHeader ( "Content-Type" , "text/html" ) ; res . end ( "You got test1" ) ; } ) ; api . proxy ( "/google" , "http://www.google.com/" ) ; export let url = api . publish ( ) . url ;