From 4b0ad3ef6d0230e585e51f8ecebacf8bb98aaa30 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Wed, 6 Sep 2017 10:23:06 +0000 Subject: [PATCH] Explicit setup method, as recommended by Hannes. --- repository/Brea/BreaWebsite.class.st | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/repository/Brea/BreaWebsite.class.st b/repository/Brea/BreaWebsite.class.st index 4ee8b13..494cb94 100644 --- a/repository/Brea/BreaWebsite.class.st +++ b/repository/Brea/BreaWebsite.class.st @@ -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"