1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 18:17:03 +00:00

Implement REST API v1

- Add rest package with REST-only controller, tests
- Remove individual shell scripts in favor of rest-apivh1.sh
This commit is contained in:
James Hillyerd
2016-02-25 14:42:10 -08:00
parent 8e084b5697
commit b9535c126c
10 changed files with 855 additions and 10 deletions

View File

@@ -15,6 +15,7 @@ import (
"github.com/jhillyerd/inbucket/httpd"
"github.com/jhillyerd/inbucket/log"
"github.com/jhillyerd/inbucket/pop3d"
"github.com/jhillyerd/inbucket/rest"
"github.com/jhillyerd/inbucket/smtpd"
"github.com/jhillyerd/inbucket/webui"
)
@@ -125,6 +126,7 @@ func main() {
// Start HTTP server
httpd.Initialize(config.GetWebConfig(), ds)
webui.SetupRoutes(httpd.Router)
rest.SetupRoutes(httpd.Router)
go httpd.Start()
// Start POP3 server