Skip to content

Commit ee1c192

Browse files
Merge pull request #12 from oslabs-beta/backend
progress
2 parents 8188481 + 22b15b4 commit ee1c192

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/backend/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
*/
1010
// regenerator runtime supports async functionality
1111
import 'regenerator-runtime/runtime';
12-
import linkFiberStart from './routers/linkFiber';
13-
import timeJumpStart from './controllers/timeJump';
12+
import linkFiberInitialization from './routers/linkFiber';
13+
import timeJumpInitialization from './controllers/timeJump';
1414
import { Snapshot, Status, MsgData } from './types/backendTypes';
1515

1616
// * State snapshot object initialized here
@@ -24,10 +24,11 @@ const mode: Status = {
2424
};
2525

2626
// linkFiber is now assigned the default function exported from the file linkFiber.ts
27+
2728
console.log('Index ts', { snapShot: JSON.parse(JSON.stringify(snapShot)) });
28-
const linkFiber = linkFiberStart(snapShot, mode);
29+
const linkFiber = linkFiberInitialization(snapShot, mode);
2930
// timeJump is now assigned the default function exported from the file timeJump.ts
30-
const timeJump = timeJumpStart(mode);
31+
const timeJump = timeJumpInitialization(mode);
3132

3233
// * Event listener for time-travel actions
3334
window.addEventListener('message', ({ data: { action, payload } }: MsgData) => {

0 commit comments

Comments
 (0)