mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-23 22:34:04 +00:00
Fix routes
This commit is contained in:
parent
7504df6a6e
commit
5bfba232e6
1 changed files with 5 additions and 5 deletions
|
@ -42,11 +42,11 @@ func CreateAPIv1(conf *config.Config, app *gotcha.App) *APIv1 {
|
|||
|
||||
r.Get("/api/v1/messages/?", apiv1.messages)
|
||||
r.Delete("/api/v1/messages/?", apiv1.delete_all)
|
||||
r.Get("/api/v1/messages/(?P<id>[^\\?]+)/?", apiv1.message)
|
||||
r.Delete("/api/v1/messages/(?P<id>[^\\?]+)/?", apiv1.delete_one)
|
||||
r.Get("/api/v1/messages/(?P<id>[^\\?]+)/download/?", apiv1.download)
|
||||
r.Get("/api/v1/messages/(?P<id>[^\\?]+)/mime/part/(\\d+)/download/?", apiv1.download_part)
|
||||
r.Post("/api/v1/messages/(?P<id>[^\\?]+)/release/?", apiv1.release_one)
|
||||
r.Get("/api/v1/messages/(?P<id>[^/]+)/?", apiv1.message)
|
||||
r.Delete("/api/v1/messages/(?P<id>[^/]+)/?", apiv1.delete_one)
|
||||
r.Get("/api/v1/messages/(?P<id>[^/]+)/download/?", apiv1.download)
|
||||
r.Get("/api/v1/messages/(?P<id>[^/]+)/mime/part/(\\d+)/download/?", apiv1.download_part)
|
||||
r.Post("/api/v1/messages/(?P<id>[^/]+)/release/?", apiv1.release_one)
|
||||
r.Get("/api/v1/events/?", apiv1.eventstream)
|
||||
|
||||
go func() {
|
||||
|
|
Loading…
Reference in a new issue