This commit is contained in:
Ian Kent 2014-11-23 15:47:58 +00:00
parent 8321b0e40a
commit 89e7347a4e
2 changed files with 6 additions and 6 deletions

View file

@ -42,11 +42,11 @@ func CreateAPIv1(conf *config.Config, app *gotcha.App) *APIv1 {
r.Get("/api/v1/messages/?", apiv1.messages) r.Get("/api/v1/messages/?", apiv1.messages)
r.Delete("/api/v1/messages/?", apiv1.delete_all) r.Delete("/api/v1/messages/?", apiv1.delete_all)
r.Get("/api/v1/messages/(?P<id>[0-9a-f]+)/?", apiv1.message) r.Get("/api/v1/messages/(?P<id>[^\\?]+)/?", apiv1.message)
r.Delete("/api/v1/messages/(?P<id>[0-9a-f]+)/?", apiv1.delete_one) r.Delete("/api/v1/messages/(?P<id>[^\\?]+)/?", apiv1.delete_one)
r.Get("/api/v1/messages/(?P<id>[0-9a-f]+)/download/?", apiv1.download) r.Get("/api/v1/messages/(?P<id>[^\\?]+)/download/?", apiv1.download)
r.Get("/api/v1/messages/(?P<id>[0-9a-f]+)/mime/part/(\\d+)/download/?", apiv1.download_part) r.Get("/api/v1/messages/(?P<id>[^\\?]+)/mime/part/(\\d+)/download/?", apiv1.download_part)
r.Post("/api/v1/messages/(?P<id>[0-9a-f]+)/release/?", apiv1.release_one) r.Post("/api/v1/messages/(?P<id>[^\\?]+)/release/?", apiv1.release_one)
r.Get("/api/v1/events/?", apiv1.eventstream) r.Get("/api/v1/events/?", apiv1.eventstream)
go func() { go func() {

View file

@ -163,7 +163,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="message in messages | filter:searchText" ng-click="selectMessage(message)" ng-class="{ selected: message.Id == preview.Id }"> <tr ng-repeat="message in messages | filter:searchText" ng-click="selectMessage(message)" ng-class="{ selected: message.ID == preview.ID }">
<td> <td>
{{ message.From.Mailbox }}@{{ message.From.Domain }} {{ message.From.Mailbox }}@{{ message.From.Domain }}
</td> </td>