Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serve static content #7

Closed
cjkent opened this issue Jul 8, 2017 · 2 comments
Closed

Serve static content #7

cjkent opened this issue Jul 8, 2017 · 2 comments
Milestone

Comments

@cjkent
Copy link
Owner

cjkent commented Jul 8, 2017

From an endpoint backed by an S3 bucket.

@cjkent
Copy link
Owner Author

cjkent commented Jul 12, 2017

Should the static files location be a property on the API builder? That would emphasise there is only one value for it. For a syntax like this:

api(FooComponents.class) {

    staticFiles = "/public"

    get("foo") { req ->
        ...
    }
}

Does this suggest there should be a different type of API builder at the root? So this can only be set in the root block but not in any nested blocks?

@cjkent
Copy link
Owner Author

cjkent commented Jul 25, 2017

It's probably worth having an indexFile property too.

@cjkent cjkent added this to the v0.2.0 milestone Jul 25, 2017
@cjkent cjkent closed this as completed in 8302f42 Oct 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant