summary refs log tree commit diff
path: root/src/api/routes/indexRoute.js
blob: 0c15b7342765986db755c07320d04502ae893da7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { RouteDescription, RouteMethod } from '#api/RouteDescription.js';

/**
 * @type {RouteDescription}
 */
export const indexRoute = {
    path: '/',
    methods: {
        get: new RouteMethod({
            description: 'Get the index page (empty)',
            method(req, res) {
                res.send(
                    "Welcome to SafeNSound! If you're confused, please visit the app instead!"
                );
            }
        })
    }
};