Commit 2c6c7c18 authored by Lorex's avatar Lorex

feat: 新增入口頁面

parent 767a9c9a
const pkg = require('../../../package.json');
module.exports = {
friendlyName: 'Index',
description: 'Index main.',
inputs: {
},
exits: {
success: {
responseType: 'ok'
},
},
fn: async function (inputs, exits) {
return exits.success({
name: pkg.name,
description: pkg.description,
version: pkg.version
})
}
};
......@@ -10,5 +10,6 @@
module.exports.routes = {
'POST /user/login': 'user/login',
'POST /app/auth': 'app/auth'
'POST /app/auth': 'app/auth',
'*': 'main/index'
};
{
"name": "exam-sso-api",
"private": true,
"version": "0.0.0",
"version": "1.0.1",
"description": "exam system single-sign-on api",
"keywords": [],
"dependencies": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment