cleanup
This commit is contained in:
@@ -12,6 +12,33 @@ const hasAccessrighton = require( '../middlewares/hasAccessrighton' );
|
||||
const router = express.Router();
|
||||
|
||||
|
||||
router.get('www', checkHeaders,isAuthenticated,hasAccessrighton('www','R'),(req,res)=>{
|
||||
/**
|
||||
* @api {get} /tribes/www/:tribeId
|
||||
* @apiName Get list of www object (space web)
|
||||
* @apiGroup Tribes
|
||||
*
|
||||
* @apiUse apxHeader
|
||||
*
|
||||
* @apiParam {String} tribeId Mandatory it identify an existing tribe
|
||||
* @apiParam {String} Check if Person has access as Read to object www
|
||||
* @apiError (404) {string} status the file does not exist
|
||||
* @apiError (404) {string} ref objectmodel to get in the right language
|
||||
* @apiError (404) {string} msg key to get template from objectmodel
|
||||
* @apiError (404) {object} data use to render lg/objectmodel_lg.json
|
||||
*
|
||||
* @apiSuccess (200) {object} data contains indexfile requested
|
||||
*/
|
||||
res.status(200).json({data:{}})
|
||||
})
|
||||
|
||||
//router.post('www/') to create a webspace
|
||||
|
||||
//router.put('www/:app') to update
|
||||
|
||||
//router.delete('www/:tribeId/:app)
|
||||
|
||||
|
||||
router.get( '/clientconf/:tribeid', checkHeaders, isAuthenticated, ( req, res ) => {
|
||||
/*
|
||||
get a clientconf.json for a tribeid depending of user accessright
|
||||
|
Reference in New Issue
Block a user