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]