artanis
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Artanis] URL Mapping w/o redirect-to?
From
:
Marc Dunivan
Subject
:
[Artanis] URL Mapping w/o redirect-to?
Date
:
Fri, 15 Mar 2019 16:27:12 -0700
Hello:
Using art (MVC).
$ art draw controller index show
What rule do I put into ENTRY to have
http://127.0.0.1/index
show
http://127.0.0.1/index/show
without redirecting to
http://127.0.0.1/index/show
?
This works, but redirects in the browser:
(get "^/index/?$" (lambda (rc) (redirect-to rc "/index/show")))
This also works, but doesn't call the controller /app/controllers/index.scm, it calls the template directly:
(get "^/index/?$" (lambda () (tpl->response "app/views/index/show.html.tpl" )))
(get "^/index/?$" (lambda (rc) (???? response-emitÂ
http://127.0.0.1/index/show
???)))
Sincerely,
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Artanis] URL Mapping w/o redirect-to?
,
Marc Dunivan
<=
Re: [Artanis] URL Mapping w/o redirect-to?
,
Nala Ginrut
,
2019/03/16
Prev by Date:
Re: [Artanis] Foreign Key for Migrations
Next by Date:
Re: [Artanis] URL Mapping w/o redirect-to?
Previous by thread:
Re: [Artanis] Foreign Key for Migrations
Next by thread:
Re: [Artanis] URL Mapping w/o redirect-to?
Index(es):
Date
Thread