Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 222bfe0

Browse files
committed
remove unnecessary assosiation. add /index.html route to main page
1 parent 44300b0 commit 222bfe0

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

media-store/app-src/src/components/Router.jsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ import Login from './Login';
1212
import { withRestrictions } from '../hocs/withRestrictions';
1313
import { requireEmployee } from '../util/constants';
1414

15-
// const TracksContainer = React.lazy(() => import('./TracksPage'));
16-
// const Header = React.lazy(() => import('./Header'));
17-
// const PersonPage = React.lazy(() => import('./PersonPage'));
18-
// const ErrorPage = React.lazy(() => import('./ErrorPage'));
19-
// const InvoicePage = React.lazy(() => import('./InvoicePage'));
20-
// const ManageStore = React.lazy(() => import('./ManageStore'));
21-
// const MyInvoicesPage = React.lazy(() => import('./MyInvoicesPage'));
22-
// const Login = React.lazy(() => import('./Login'));
23-
2415
const RestrictedLogin = withRestrictions(Login, ({ user }) => !user);
2516
const RestrictedInvoicePage = withRestrictions(
2617
InvoicePage,
@@ -36,7 +27,7 @@ const MyRouter = () => {
3627
<div style={{ padding: '2em 20vh' }}>
3728
<React.Suspense fallback={<div>Loading...</div>}>
3829
<Switch>
39-
<Route exact path={['/', '/tracks']}>
30+
<Route exact path={['/index.html', '/tracks', '/']}>
4031
<TracksContainer />
4132
</Route>
4233
<Route exact path="/person">

media-store/db/schema.cds

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@ entity Albums {
4242
}
4343

4444
entity Employees : Person {
45-
reportsTo : Association to Employees;
46-
title : String(20);
47-
birthDate : DateTime;
48-
hireDate : DateTime;
49-
subordinates : Association to many Employees
50-
on subordinates.reportsTo = $self;
45+
reportsTo : Association to Employees;
46+
title : String(20);
47+
birthDate : DateTime;
48+
hireDate : DateTime;
5149
}
5250

5351
entity Customers : Person {

0 commit comments

Comments
 (0)