From a96dd9535951bb936f57371267375389e21aa3ad Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Fri, 29 Mar 2024 20:27:48 -0500 Subject: [PATCH] Default shared server with MiniDocs to create App views/(sub)routes. --- repository/Brea/BreaApp.class.st | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/repository/Brea/BreaApp.class.st b/repository/Brea/BreaApp.class.st index 26515dd..73c42e7 100644 --- a/repository/Brea/BreaApp.class.st +++ b/repository/Brea/BreaApp.class.st @@ -3,7 +3,8 @@ Class { #superclass : #Object, #instVars : [ 'name', - 'folder' + 'folder', + 'server' ], #category : #Brea } @@ -37,3 +38,8 @@ BreaApp >> name: aString [ BreaApp >> parentFolder: anObject [ self folder: anObject / self name asCamelCase ] + +{ #category : #accessing } +BreaApp >> server [ + ^ server ifNil: [ server := MiniDocsServer singleton ] +]