api: handle SIGINT gracefully

This commit is contained in:
Adhityaa
2018-06-03 14:03:24 +05:30
parent a44e389b10
commit 72ab137f06
2 changed files with 26 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ func main() {
exitIfError(smtpConfigure())
exitIfError(oauthConfigure())
exitIfError(createMarkdownRenderer())
exitIfError(setupSigintCleanup())
exitIfError(serveRoutes())
}