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.
25 lines
693 B
25 lines
693 B
module.exports = exports = {
|
|
|
|
prefix: '/api/v1/code',
|
|
|
|
middleware: [
|
|
'auth:ApiRoute',
|
|
],
|
|
|
|
get: {
|
|
// Get the code ref node config for the specified code editor
|
|
'/:PageId/:NodeId/get/:CodiumId': ['controller::api:v1:FormCode.get_config'],
|
|
},
|
|
|
|
post: {
|
|
// Create a new code ref config
|
|
'/:PageId/:NodeId/create': ['controller::api:v1:FormCode.create_new'],
|
|
|
|
// Set the data for the specified code ref
|
|
'/:PageId/:NodeId/set/:CodiumId': ['controller::api:v1:FormCode.set_values'],
|
|
|
|
// delete the specified code ref
|
|
'/:PageId/:NodeId/delete/:CodiumId': ['controller::api:v1:FormCode.drop_code'],
|
|
},
|
|
}
|