Skip to content

Commit 8cda579

Browse files
Arty26lahiruz
authored andcommitted
Added routes definition to readme
1 parent 586bd0f commit 8cda579

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,19 @@ There are several demonstration files available in this template.
117117
- HomeController.java:
118118

119119
Shows how to handle simple HTTP requests.
120+
121+
## Routes
122+
123+
All the route definitions should be included in this file based on higher priority first. In this example project following route is added to retrieve the summary.
124+
125+
```
126+
GET /summary controllers.HomeController.appSummary()
127+
```
128+
129+
```
130+
├── /conf/
131+
│ └── routes
132+
```
120133

121134
## Components
122135

ui/src/app/app.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'rxjs/add/observable/of';
88
class FakeAppService extends AppService {
99
getWelcomeMessage() {
1010
return Observable.of({
11-
content: 'Java Play Angular Seed'
11+
content: 'Test content'
1212
});
1313
}
1414
}
@@ -38,12 +38,12 @@ describe('AppComponent', () => {
3838
it(`should have as title 'app'`, async(() => {
3939
const fixture = TestBed.createComponent(AppComponent);
4040
const app = fixture.debugElement.componentInstance;
41-
expect(app.title).toEqual('Java Play Angular Seed');
41+
expect(app.title).toEqual('Test content');
4242
}));
4343
it('should render title in a h1 tag', async(() => {
4444
const fixture = TestBed.createComponent(AppComponent);
4545
fixture.detectChanges();
4646
const compiled = fixture.debugElement.nativeElement;
47-
expect(compiled.querySelector('h1').textContent).toContain('Welcome to Java Play Angular Seed!');
47+
expect(compiled.querySelector('h1').textContent).toContain('Welcome to Test content!');
4848
}));
4949
});

0 commit comments

Comments
 (0)