wip: e2e tests

This commit is contained in:
Mo
2023-05-22 07:29:12 -05:00
parent 42aa572375
commit 5cf0617403
7 changed files with 25 additions and 11 deletions
@@ -7,7 +7,7 @@ import { ProjectorInterface } from '../Projection/ProjectorInterface'
import { Contact } from '../Domain/Contact/Model/Contact'
import { ContactProjection } from '../Projection/ContactProjection'
@controller('/contacts')
@controller('/contacts', TYPES.AuthMiddleware)
export class ContactsController extends BaseHttpController {
constructor(
@inject(TYPES.ContactService) private contactService: ContactServiceInterface,
@@ -16,7 +16,7 @@ export class ContactsController extends BaseHttpController {
super()
}
@httpPost('/', TYPES.AuthMiddleware)
@httpPost('/')
public async createContact(
request: Request,
response: Response,
@@ -36,7 +36,7 @@ export class ContactsController extends BaseHttpController {
})
}
@httpDelete('/:contactUuid', TYPES.AuthMiddleware)
@httpDelete('/:contactUuid')
public async deleteContact(
request: Request,
response: Response,