mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-23 14:24:03 +00:00
Add APIv2 (and update download badge)
This commit is contained in:
parent
2ee6fb7615
commit
e696da48fc
2 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
2
main.go
2
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)
|
||||
|
|
Loading…
Reference in a new issue