[headless] Add tests to ensure that remote contact adding needs auth token

This commit is contained in:
Torsten Grote
2019-05-14 16:47:38 -03:00
parent 3770a9f217
commit faa6a85148
4 changed files with 31 additions and 3 deletions

View File

@@ -65,12 +65,12 @@ constructor(
path("/contacts") {
get { ctx -> contactController.list(ctx) }
path("add") {
post { ctx -> contactController.addPendingContact(ctx) }
path("link") {
get { ctx -> contactController.link(ctx) }
}
path("pending") {
get { ctx -> contactController.listPendingContacts(ctx) }
post { ctx -> contactController.addPendingContact(ctx) }
delete { ctx -> contactController.removePendingContact(ctx) }
}
}