Explicit setup method, as recommended by Hannes.

This commit is contained in:
Offray Luna 2017-09-06 10:23:06 +00:00
parent 9f06dc26f7
commit 4b0ad3ef6d

View File

@ -146,7 +146,7 @@ BreaWebsite >> routes [
{ #category : #accessing }
BreaWebsite >> server [
^ server ifNil: [ server := Teapot configure: { #port ->8080 . #debugMode -> true } ]
^ server ifNil: [ self setup ]
]
{ #category : #accessing }
@ -154,6 +154,14 @@ BreaWebsite >> server: anObject [
server := anObject
]
{ #category : #accessing }
BreaWebsite >> setup [
^ server := Teapot
configure:
{(#port -> 8080).
(#debugMode -> true)}
]
{ #category : #'server handling' }
BreaWebsite >> start [
"I define the config and start the server"