Make 0-arg function serve as initialization middleware

Signed-off-by: Ian Macalinao <me@ian.pw>