docs: Add base path for API endpoints to Swagger
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* /api/webhooks:
|
||||
* /webhooks:
|
||||
* post:
|
||||
* summary: Create webhook
|
||||
* description: Creates a webhook. Requires admin privileges.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* /api/webhooks/{id}:
|
||||
* /webhooks/{id}:
|
||||
* delete:
|
||||
* summary: Delete webhook
|
||||
* description: Deletes a webhook. Requires admin privileges.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* /api/webhooks:
|
||||
* /webhooks:
|
||||
* get:
|
||||
* summary: Get all webhooks
|
||||
* description: Retrieves a list of all configured webhooks. Requires admin privileges.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* /api/webhooks/{id}:
|
||||
* /webhooks/{id}:
|
||||
* patch:
|
||||
* summary: Update webhook
|
||||
* description: Updates a webhook. Requires admin privileges.
|
||||
|
||||
Reference in New Issue
Block a user