Node.js based forum software built for the modern web
fix: tests remove old routes
Barış Soner Uşaklıfaeb637353a5
diff --git a/public/openapi/read.yaml b/public/openapi/read.yamlindex f33624b521..f849b2a995 100644--- a/public/openapi/read.yaml+++ b/public/openapi/read.yaml@@ -169,12 +169,6 @@ paths:$ref: 'read/user/uid/userslug/export/uploads.yaml'"/api/user/uid/{userslug}/export/profile":$ref: 'read/user/uid/userslug/export/profile.yaml'- "/api/{type}/pid/{id}":- $ref: 'read/post/pid/id.yaml'- "/api/{type}/tid/{id}":- $ref: 'read/topic/tid/id.yaml'- "/api/{type}/cid/{id}":- $ref: 'read/category/cid/id.yaml'/api/categories:$ref: 'read/categories.yaml'"/api/categories/{cid}/moderators":diff --git a/public/openapi/read/category/cid/id.yaml b/public/openapi/read/category/cid/id.yamldeleted file mode 100644index 298147dea3..0000000000--- a/public/openapi/read/category/cid/id.yaml+++ /dev/null@@ -1,71 +0,0 @@-get:- tags:- - shorthand- summary: Get category data- parameters:- - name: type- in: path- required: true- schema:- type: string- example: category- - name: id- in: path- required: true- schema:- type: string- example: 1- responses:- "200":- description: "A JSON object containing category data"- content:- application/json:- schema:- type: object- properties:- cid:- type: number- name:- type: number- description:- type: string- descriptionParsed:- type: string- icon:- type: string- bgColor:- type: string- color:- type: string- slug:- type: string- parentCid:- type: number- topic_count:- type: number- post_count:- type: number- disabled:- type: number- order:- type: number- link:- type: string- numRecentReplies:- type: number- class:- type: string- imageClass:- type: string- isSection:- type: number- postQueue:- type: number- totalPostCount:- type: number- totalTopicCount:- type: number- minTags:- type: number- maxTags:- type: number\ No newline at end of filediff --git a/public/openapi/read/post/pid/id.yaml b/public/openapi/read/post/pid/id.yamldeleted file mode 100644index 58dd822f30..0000000000--- a/public/openapi/read/post/pid/id.yaml+++ /dev/null@@ -1,62 +0,0 @@-get:- tags:- - shorthand- summary: Get post data- parameters:- - name: type- in: path- required: true- schema:- type: string- example: post- - name: id- in: path- required: true- schema:- type: number- example: 1- responses:- "200":- description: "A JSON object containing post data"- content:- application/json:- schema:- type: object- properties:- uid:- type: number- tid:- type: number- timestamp:- type: number- content:- type: string- pid:- type: number- downvotes:- type: number- upvotes:- type: number- bookmarks:- type: number- deleted:- type: number- deleterUid:- type: number- edited:- type: number- votes:- type: number- timestampISO:- type: string- editedISO:- type: string- upvoted:- type: boolean- downvoted:- type: boolean- flagId:- type: number- description: The flag identifier, if this particular post has been flagged before- replies:- type: number\ No newline at end of filediff --git a/public/openapi/read/topic/tid/id.yaml b/public/openapi/read/topic/tid/id.yamldeleted file mode 100644index dd77ad2670..0000000000--- a/public/openapi/read/topic/tid/id.yaml+++ /dev/null@@ -1,36 +0,0 @@-get:- tags:- - shorthand- summary: Get topic data- parameters:- - name: type- in: path- required: true- schema:- type: string- example: topic- - name: id- in: path- required: true- schema:- type: string- example: 1- responses:- "200":- description: "A JSON object containing topic data"- content:- application/json:- schema:- allOf:- - $ref: ../../../components/schemas/TopicObject.yaml#/TopicObjectSlim- - type: object- properties:- teaserPid:- type: number- nullable: true- title:- type: string- slug:- type: string- titleRaw:- type: string\ No newline at end of file