Question: I'm trying to build a JSON backend for Elm. I only want to serve one page - elm.html, one js file - Main.js - and one css file.

I tried [following these instructions](https://stackoverflow.com/questions/29919143/route-to-a-static-page-in-phoenix-framework/30032537) but there is not enough there to help a complete newbie like me.

So now I have router.ex

```
  scope "/", JwtExample do
    pipe_through :browser # Use the default browser stack

    get "/elm", RootController, :index
    get "/", PageController, :index
  end

  # Other scopes may use custom stacks.
  scope "/api", JwtExample do
    pipe_through :api

    resources "/users", UserController, except: [:new, :edit]
  end

```

This controller

```
defmodule JwtExample.RootController do
  use JwtExample.Web, :controller

  plug :action

  def index(conn, _params) do
    redirect conn, to: "/elm.html"
  end
end

```

And my files in `web/static` and `priv/static`

But when I surf to /elm I get 

> 
> no route found for GET /elm.html (JwtExample.Router)
> 
> 
>

Answer: 
```
find * -path "backoffice/target/" -prune -o -type f \( -name "*.groovy" -o -name "*.gsp" \) -print

```
Here is an answer, 99% of posted solutions to "excluding a sub-directory" seem to not work (for me at least).

Interestingly, this is our attempt to get the list of source files for a grails project:

```
  find * -type d \( -name "target" -o -name "test" \) -prune -o -type f \( -name "*.groovy" -o -name "*.gsp" -o -name "*.java" -o -name "*.css" -o -name "*.js" -o -name "*.less" -o -name "*.properties" -o -name "*.sql" -o -name "*.xml" \) -print > ha

```