Dynamic routes setup.
This commit is contained in:
parent
79b2877154
commit
a88af11245
@ -129,6 +129,7 @@ LePage >> latestEditTime: aLeTime [
|
|||||||
{ #category : #'*MiniDocs' }
|
{ #category : #'*MiniDocs' }
|
||||||
LePage >> localHostAddress [
|
LePage >> localHostAddress [
|
||||||
| localUrl route |
|
| localUrl route |
|
||||||
|
MiniDocsServer teapot server isRunning ifFalse: [ MiniDocsServer start ].
|
||||||
route := MiniDocsServer teapot staticRouter prefix joinUsing: '/'.
|
route := MiniDocsServer teapot staticRouter prefix joinUsing: '/'.
|
||||||
localUrl := MiniDocsServer teapot server localUrl asString.
|
localUrl := MiniDocsServer teapot server localUrl asString.
|
||||||
^ localUrl, route, '/', self markdeepFileName
|
^ localUrl, route, '/', self markdeepFileName
|
||||||
|
@ -45,6 +45,8 @@ MiniDocsServer >> initRoutes [
|
|||||||
self storage: FileLocator documents / 'lepiter' / 'default'.
|
self storage: FileLocator documents / 'lepiter' / 'default'.
|
||||||
self teapot
|
self teapot
|
||||||
serveStatic: '/lepiter/doc' from: self storage fullName.
|
serveStatic: '/lepiter/doc' from: self storage fullName.
|
||||||
|
self teapot
|
||||||
|
GET: '/lepiter' -> 'A list of Mardeep exported Lepiter docs will appear soon...'
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
|
Loading…
Reference in New Issue
Block a user