新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
var events = require('./events.js');
|
||||
|
||||
exports.events = function (req, res) {
|
||||
res.json(events);
|
||||
};
|
||||
|
||||
exports.event = function (req, res) {
|
||||
res.json(events[req.param.eventId]);
|
||||
};
|
||||
@@ -0,0 +1,17 @@
|
||||
module.exports = [
|
||||
{
|
||||
id: 1,
|
||||
title: 'DockerCon 2021',
|
||||
date: '2021-05-27'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: 'KubeCon Europe 2021',
|
||||
date: '2021-08-16'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: 'KubeCon North America 2021',
|
||||
date: '2021-11-23'
|
||||
}
|
||||
];
|
||||
@@ -0,0 +1,20 @@
|
||||
module.exports = [
|
||||
{
|
||||
id: 1,
|
||||
title: 'DockerCon 2021',
|
||||
detail: 'The container conference for the industry',
|
||||
date: '2021-05-27'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: 'KubeCon Europe 2021',
|
||||
detail: 'The Cloud Native Computing Foundation’s flagship conference',
|
||||
date: '2021-08-16'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: 'KubeCon North America 2021',
|
||||
detail: 'The Cloud Native Computing Foundation’s flagship conference',
|
||||
date: '2021-11-23'
|
||||
}
|
||||
];
|
||||
@@ -0,0 +1,17 @@
|
||||
module.exports = [
|
||||
{
|
||||
id: 1,
|
||||
title: 'DockerCon 2021',
|
||||
date: '2021-05-27'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: 'KubeCon Europe 2021',
|
||||
date: '2021-08-16'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: 'KubeCon North America 2021',
|
||||
date: '2021-11-23'
|
||||
}
|
||||
];
|
||||
@@ -0,0 +1,3 @@
|
||||
exports.index = function (req, res) {
|
||||
res.render('index');
|
||||
}
|
||||
Reference in New Issue
Block a user