summary refs log tree commit diff
path: root/src/api/routes/indexRoute.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/routes/indexRoute.js')
-rw-r--r--src/api/routes/indexRoute.js15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/api/routes/indexRoute.js b/src/api/routes/indexRoute.js

index 3b9eaef..b6fe28e 100644 --- a/src/api/routes/indexRoute.js +++ b/src/api/routes/indexRoute.js
@@ -1,6 +1,15 @@ +import { RouteDescription, RouteMethod } from '#api/RouteDescription.js'; + +/** + * @type {RouteDescription} + */ export const indexRoute = { - route: '/', - onGet(req, res) { - res.send('What art thou doing here???'); + path: '/', + methods: { + get: new RouteMethod({ + method(req, res) { + res.send('What art thou doing here???'); + } + }) } };