diff --git a/routes/token.js b/routes/token.js index 8dfca59..04f128a 100644 --- a/routes/token.js +++ b/routes/token.js @@ -1,6 +1,12 @@ import { Router } from "express"; +import { generateAPIKey } from "../tools/generator.js"; export default function tokenRoute() { const router = Router(); + + router.get('/api-key', (_, res)=>{ + res.send({api_key: generateAPIKey()}) + }) + return router; } \ No newline at end of file