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

Typo in SE 2 Doc - Static Content Support code snippet #2081

Closed
delabassee opened this issue Jun 23, 2020 · 0 comments
Closed

Typo in SE 2 Doc - Static Content Support code snippet #2081

delabassee opened this issue Jun 23, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@delabassee
Copy link
Contributor

Environment Details

  • Helidon Version: 2
  • Helidon SE or Helidon MP NA
  • JDK version: NA
  • OS: NA

Problem Description

Small typo in https://helidon.io/docs/v2/#/se/webserver/06_static-content-support

Routing.builder()
//  .register("/pictures", StaticContentSupport.create(Paths.get("/some/WEB/pics"))
// should be instead
    .register("/pictures", StaticContentSupport.create(Paths.get("/some/WEB/pics")))
    .register("/", StaticContentSupport.builder("/static-content") 
                             .welcomeFileName("index.html") 
                             .build());
@barchetta barchetta added the docs label Jul 1, 2020
@barchetta barchetta self-assigned this Jul 1, 2020
@barchetta barchetta added docs and removed docs labels Jul 1, 2020
@barchetta barchetta added this to the 2.0.2 milestone Jul 1, 2020
barchetta added a commit to barchetta/helidon that referenced this issue Jul 1, 2020
barchetta added a commit that referenced this issue Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants