Skip to content

Commit 60ee577

Browse files
author
Lee Richmond
committed
Rename bootstrap to setup
1 parent b135abd commit 60ee577

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>Test</title>
55
</head>
66
<body>
7-
<script src="dist/jsorm.js"></script>
7+
<script src="dist/jsorm.js?v=asfasfdsf"></script>
88
<script>
99
var Model = jsorm.Model;
1010
var attr = jsorm.attr;
@@ -13,8 +13,8 @@
1313
const Staffer = Model.extend({
1414
static: {
1515
jsonapiType: 'staffers',
16-
apiNamespace: '/v1',
17-
baseUrl: 'http://localhost:3000/api'
16+
apiNamespace: '/api/v1',
17+
baseUrl: ''
1818
},
1919

2020
firstName: attr(),
@@ -29,7 +29,7 @@
2929
console.log(s.fullName());
3030
});
3131

32-
Config.bootstrap();
32+
Config.setup();
3333
</script>
3434
</body>
3535
</html>

src/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default class Config {
99
static typeMapping: Object = {};
1010
static logger: Logger = new Logger();
1111

12-
static bootstrap() : void {
12+
static setup() : void {
1313
for (let model of this.models) {
1414
this.typeMapping[model.jsonapiType] = model;
1515
}

test/fixtures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ class Tag extends Model {
5050
name: string = attr()
5151
}
5252

53-
Config.bootstrap();
53+
Config.setup();
5454

5555
export { Author, Person, Book, Genre, Bio, Tag };

0 commit comments

Comments
 (0)