Pre dynamic routes setup.
This commit is contained in:
parent
a587817790
commit
79b2877154
@ -10,9 +10,22 @@ Class {
|
||||
#category : #MiniDocs
|
||||
}
|
||||
|
||||
{ #category : #accessing }
|
||||
MiniDocsServer class >> build [
|
||||
TLRESTAPIBuilder buildAPI.
|
||||
self start
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
MiniDocsServer class >> listLepiterDocs: aRequest [
|
||||
<REST_API: 'GET' pattern: 'lepiter'>
|
||||
^ 'A list of Mardeep exported Lepiter docs will appear soon...'
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
MiniDocsServer class >> restart [
|
||||
Teapot stopAll.
|
||||
self build.
|
||||
^ self start
|
||||
]
|
||||
|
||||
@ -27,7 +40,7 @@ MiniDocsServer >> addStorage: anObject [
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
MiniDocsServer >> initStorageRoutes [
|
||||
MiniDocsServer >> initRoutes [
|
||||
super initTeapot.
|
||||
self storage: FileLocator documents / 'lepiter' / 'default'.
|
||||
self teapot
|
||||
@ -36,7 +49,7 @@ MiniDocsServer >> initStorageRoutes [
|
||||
|
||||
{ #category : #accessing }
|
||||
MiniDocsServer >> start [
|
||||
self initStorageRoutes.
|
||||
self initRoutes.
|
||||
super start.
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user