Skip to content

Not able to route static files or assets #67

Open
@varmasaurav

Description

@varmasaurav

I have put a static schema file (.xsd) in the location "src/main/webapp/resources/schemas/latest/" in my spring mvc project. But I am not able to understand how to specify static file routing in routes.conf. I looked at the play framework documentation which says below -

GET /home staticFile:/public/html/index.html

I tried possibilities like

GET /schema staticFile:/resources/schemas/latest/myXsd.xsd

and

GET /schema staticFile:/schemas/latest/myXsd.xsd

But nothing worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions