Shopify CLI boilerplate for static home page

New Member
1 0 0

I'm starting to write an app using the shopify CLI (great tool - thanks). I want to have the app serve a static 'About this app' page on route '/'. If the url that has been passed does not have the `?shop=` querystring then I want it to display the static page otherwise I want the app to run the usual verifyRequest() middleware before connecting to the main app 

I was thinking something like this:

 router.get("/", async ctx => {
    if (ctx.request.query['shop'] == null) {
      handle(ctx.req, ctx.res); 
      ctx.respond = false; 
      ctx.res.statusCode = 200;
    } else {
      await handlers.getHomePage(ctx);

Any suggestions on what approach I should take?