mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2025-02-20 01:35:56 +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 [  ](https://bintray.com/ian-kent/generic/Go-MailHog/_latestVersion) [](https://godoc.org/github.com/mailhog/MailHog) [](https://travis-ci.org/mailhog/MailHog)
|
||||
MailHog [  ](https://github.com/mailhog/MailHog/releases/tag/release%2F0.1.0) [](https://godoc.org/github.com/mailhog/MailHog) [](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…
Add table
Reference in a new issue