It can't be defined as a route but it can be defined in the same file. Since your "routes.ini" is simply a config file which is loaded by F3's config()
, you can do something like
[routes]
; Process login form submission
GET|POST /login="Controllers\Main->login"
; Logout
GET /logout="Controllers\Main->logout"
[globals]
;Errors
ONERROR="Controllers\Main->error"
You can read more about it here: https://github.com/bcosca/fatfree#configuration-files