Node.js based forum software built for the modern web
chore: move topic route schema up two levels as slug and index are optional
Julian Lamae402e213e1f
diff --git a/public/openapi/read.yaml b/public/openapi/read.yamlindex ae2014c774..94481e01ba 100644--- a/public/openapi/read.yaml+++ b/public/openapi/read.yaml@@ -168,7 +168,7 @@ paths:"/api/categories/{cid}/moderators":$ref: 'read/categories/cid/moderators.yaml'"/api/topic/{topic_id}/{slug}/{post_index}":- $ref: 'read/topic/topic_id/slug/post_index.yaml'+ $ref: 'read/topic/topic_id.yaml'/api/recent:$ref: 'read/recent.yaml'"/api/recent/posts/{term}":diff --git a/public/openapi/read/topic/topic_id/slug/post_index.yaml b/public/openapi/read/topic/topic_id.yamlsimilarity index 96%rename from public/openapi/read/topic/topic_id/slug/post_index.yamlrename to public/openapi/read/topic/topic_id.yamlindex 6dac531eab..c55c6888cd 100644--- a/public/openapi/read/topic/topic_id/slug/post_index.yaml+++ b/public/openapi/read/topic/topic_id.yaml@@ -89,7 +89,7 @@ get:tags:type: arrayitems:- $ref: ../../../../components/schemas/TagObject.yaml#/TagObject+ $ref: ../../components/schemas/TagObject.yaml#/TagObjectposts:type: arrayitems:@@ -277,7 +277,7 @@ get:type: numberdescription: The flag identifier, if this particular post has been flagged beforecategory:- $ref: ../../../../components/schemas/CategoryObject.yaml#/CategoryObject+ $ref: ../../components/schemas/CategoryObject.yaml#/CategoryObjecttagWhitelist:type: arrayitems:@@ -325,7 +325,7 @@ get:related:type: arrayitems:- $ref: ../../../../components/schemas/TopicObject.yaml#/TopicObject+ $ref: ../../components/schemas/TopicObject.yaml#/TopicObjectunreplied:type: booleanicons:@@ -402,7 +402,7 @@ get:postIndex:type: numberloggedInUser:- $ref: ../../../../components/schemas/UserObject.yaml#/UserObject- - $ref: ../../../../components/schemas/Pagination.yaml#/Pagination- - $ref: ../../../../components/schemas/Breadcrumbs.yaml#/Breadcrumbs- - $ref: ../../../../components/schemas/CommonProps.yaml#/CommonProps\ No newline at end of file+ $ref: ../../components/schemas/UserObject.yaml#/UserObject+ - $ref: ../../components/schemas/Pagination.yaml#/Pagination+ - $ref: ../../components/schemas/Breadcrumbs.yaml#/Breadcrumbs+ - $ref: ../../components/schemas/CommonProps.yaml#/CommonProps\ No newline at end of file