diff --git a/README.md b/README.md index d1409b0..f8ab4a7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -MailHog [ ![Download](https://api.bintray.com/packages/ian-kent/generic/Go-MailHog/images/download.svg) ](https://bintray.com/ian-kent/generic/Go-MailHog/_latestVersion) [![GoDoc](https://godoc.org/github.com/mailhog/MailHog?status.svg)](https://godoc.org/github.com/mailhog/MailHog) [![Build Status](https://travis-ci.org/mailhog/MailHog.svg?branch=master)](https://travis-ci.org/mailhog/MailHog) +MailHog [ ![Download](https://img.shields.io/github/release/mailhog/MailHog.svg) ](https://github.com/mailhog/MailHog/releases/tag/release%2F0.1.0) [![GoDoc](https://godoc.org/github.com/mailhog/MailHog?status.svg)](https://godoc.org/github.com/mailhog/MailHog) [![Build Status](https://travis-ci.org/mailhog/MailHog.svg?branch=master)](https://travis-ci.org/mailhog/MailHog) ========= Inspired by [MailCatcher](http://mailcatcher.me/), easier to install. diff --git a/main.go b/main.go index 94067da..1bda7d5 100644 --- a/main.go +++ b/main.go @@ -35,11 +35,13 @@ func main() { cb := func(app *gotcha.App) { web.CreateWeb(uiconf, app) api.CreateAPIv1(apiconf, app) + api.CreateAPIv2(apiconf, app) } go http.Listen(uiconf.UIBindAddr, assets.Asset, exitCh, cb) } else { cb1 := func(app *gotcha.App) { api.CreateAPIv1(apiconf, app) + api.CreateAPIv2(apiconf, app) } cb2 := func(app *gotcha.App) { web.CreateWeb(uiconf, app)