Skip to content

Commit

Permalink
Translating src/controllers/admin/loggers.js from javascript to types…
Browse files Browse the repository at this point in the history
…cript
  • Loading branch information
ruiminggu committed Oct 12, 2023
1 parent 75bd7e3 commit cfe1aa3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/controllers/admin/logger.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const loggerController = module.exports;

loggerController.get = function (req, res) {
res.render('admin/development/logger', {});
"use strict";
const loggerController = {
get(req, res) {
res.render('admin/development/logger', {});
},
};
module.exports = loggerController;
9 changes: 9 additions & 0 deletions src/controllers/admin/logger.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Request, Response } from 'express';

const loggerController: { get: (req: Request, res: Response) => void } = {
get(req: Request, res: Response): void {
res.render('admin/development/logger', {});
},
};

export = loggerController;

0 comments on commit cfe1aa3

Please sign in to comment.