
func WebAppMain(args)
{
    return (ctx)=>{
        if(ctx.Path == "/")
        {
            ctx.WithMimeType("text/html").SendText(<img src="mountain.jpg">);
            return true;
        }
        else if(ctx.Path == "/mountain.jpg")
        {
            var mypicture = embed("mountain.jpg");
            ctx.WithMimeType("image/jpeg").SendBytes(mypicture);
            return true;
        }
        return false;
    };
}
func main(args)
{
    Console.WriteLine("use crosslang webapp-test to test");
}