Skip to content

Commit ffcc8f3

Browse files
Swapping path order to make API a little cleaner.
1 parent 91f852d commit ffcc8f3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/src/lib/period.param.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
name: 'period',
33
'in': 'path',
4-
description: 'The name of the period for which you would like to grab the current note.',
4+
description: 'The name of the period for which you would like to grab a periodic note.',
55
required: true,
66
schema: {
77
type: 'string',

docs/src/openapi.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ std.manifestYamlDoc(
342342
parameters+: [ParamPeriod],
343343
},
344344
},
345-
'/periodic/{year}/{month}/{day}/{period}/': {
345+
'/periodic/{period}/{year}/{month}/{day}/': {
346346
get: Get {
347347
tags: [
348348
'Periodic Notes',

src/requestHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ export default class RequestHandler {
12411241
.post(this.periodicPost.bind(this))
12421242
.delete(this.periodicDelete.bind(this));
12431243
this.api
1244-
.route("/periodic/:year/:month/:day/:period/")
1244+
.route("/periodic/:period/:year/:month/:day/")
12451245
.get(this.periodicGet.bind(this))
12461246
.put(this.periodicPut.bind(this))
12471247
.patch(this.periodicPatch.bind(this))

0 commit comments

Comments
 (0)