﻿)clear
]import /git/Jarvis/Source/Jarvis 
]box on
&'
&'
⍝ limit which functions are viewed as endpoints
j←Jarvis.New ''
j.Port←8080
j.CodeLocation←'/DYNA24/myApp'
j.Start
]open http://localhost:8080
&'
&'
j.ExcludeFns←'utils.*'
&'
&'
⍝ add authentication
j.Stop
j.AuthenticateFn←'utils.Login'
⎕VR '#.CodeLocation.utils.Login'
j.Start
]open http://localhost:8080
&'
&'
⍝ add sessioning
j.Stop
j.SessionTimeout←0.1 ⍝ 6 second session timeout
j.SessionInitFn←'utils.InitSession'
j.SessionUseCookie←1
⎕VR '#.CodeLocation.utils.InitSession'
j.Start
]open http://localhost:8080
