Verified Commit 153601c5 authored by Sebastiaan Deckers's avatar Sebastiaan Deckers 馃悜

fix: singular noun for single record

parent 7bdd058d
......@@ -24,7 +24,7 @@ Response body:
}
```
## `PUT /sites{/domain}/certificates`
## `PUT /sites{/domain}/certificate`
*Not yet implemented.*
......
......@@ -9,7 +9,7 @@ module.exports = async (fastify, options) => {
fastify.route({
method: 'GET',
url: '/sites/:domain/certificates',
url: '/sites/:domain/certificate',
schema: {
response: {
200: {
......
......@@ -44,7 +44,7 @@ test('Setup database fixtures', async (t) => {
test('Retrieve site configuration as user', async (t) => {
const accessToken = await getUserAccessToken()
const origin = `https://localhost:${configuration.port}`
const url = `${origin}/v2/sites/${fixture.domain}/certificates`
const url = `${origin}/v2/sites/${fixture.domain}/certificate`
const response = await fetch(url, {
method: 'GET',
headers: { 'authorization': `Bearer ${accessToken}` }
......@@ -57,7 +57,7 @@ test('Retrieve site configuration as user', async (t) => {
test('Retrieve site configuration as edge', async (t) => {
const accessToken = await getEdgeAccessToken()
const origin = `https://localhost:${configuration.port}`
const url = `${origin}/v2/sites/${fixture.domain}/certificates`
const url = `${origin}/v2/sites/${fixture.domain}/certificate`
const response = await fetch(url, {
method: 'GET',
headers: { 'authorization': `Bearer ${accessToken}` }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment