You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
760 B
24 lines
760 B
// | ------------------------------------------------------------
|
|
// | @版本: version 0.1
|
|
// | @创建人: 【Nie-x7129】
|
|
// | @E-mail: x71291@outlook.com
|
|
// | @所在项目: P01CentralControl
|
|
// | @文件描述: index.js -
|
|
// | @创建时间: 2024-01-16 15:23
|
|
// | @更新时间: 2024-01-16 15:23
|
|
// | @修改记录:
|
|
// | -*-*-*- (时间--修改人--修改说明) -*-*-*-
|
|
// | =
|
|
// | ------------------------------------------------------------
|
|
export default function (fastify, options, done){
|
|
// @ 获取系统信息
|
|
fastify.get('/getInfo', {
|
|
preValidation: [ fastify.authenticate ]
|
|
}, async function(request, reply){
|
|
this.log.error(request);
|
|
this.log.warn(request.user);
|
|
return 'ok';
|
|
});
|
|
done();
|
|
}
|
|
|
|
|