mirror of https://github.com/BRAVO68WEB/shx.git
15 lines
353 B
TypeScript
15 lines
353 B
TypeScript
import { Router } from 'express';
|
|
import APIKeyController from '../controllers/apikey.controller';
|
|
|
|
const apiKeyController = new APIKeyController();
|
|
|
|
const router = Router();
|
|
|
|
router.get('/', apiKeyController.list as any);
|
|
|
|
router.post('/', apiKeyController.generate as any);
|
|
|
|
router.delete('/', apiKeyController.revoke as any);
|
|
|
|
export default router;
|