Add endpoint with version of the API
This commit is contained in:
parent
ec51cc803e
commit
8ffa0ba075
|
@ -0,0 +1,15 @@
|
|||
const Route = require('../../structures/Route');
|
||||
|
||||
class versionGET extends Route {
|
||||
constructor() {
|
||||
super('/version', 'get', { bypassAuth: true });
|
||||
}
|
||||
|
||||
run(req, res) {
|
||||
return res.json({
|
||||
version: process.env.npm_package_version
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = versionGET;
|
Loading…
Reference in New Issue