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