Skip to content

Commit 16fdb37

Browse files
Adding route allowing year/month/day specification. Currently untested.
1 parent cecc772 commit 16fdb37

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/requestHandler.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,13 @@ export default class RequestHandler {
12401240
.patch(this.periodicPatch.bind(this))
12411241
.post(this.periodicPost.bind(this))
12421242
.delete(this.periodicDelete.bind(this));
1243+
this.api
1244+
.route("/periodic/:year/:month/:day/:period/")
1245+
.get(this.periodicGet.bind(this))
1246+
.put(this.periodicPut.bind(this))
1247+
.patch(this.periodicPatch.bind(this))
1248+
.post(this.periodicPost.bind(this))
1249+
.delete(this.periodicDelete.bind(this));
12431250

12441251
this.api.route("/commands/").get(this.commandGet.bind(this));
12451252
this.api.route("/commands/:commandId/").post(this.commandPost.bind(this));

0 commit comments

Comments
 (0)