mirror of
https://github.com/strapi/strapi.git
synced 2025-07-19 15:06:11 +00:00
28 lines
456 B
JavaScript
28 lines
456 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
type: 'content-api',
|
|
routes: [
|
|
{
|
|
method: 'POST',
|
|
path: '/',
|
|
handler: 'content-api.upload',
|
|
},
|
|
{
|
|
method: 'GET',
|
|
path: '/files',
|
|
handler: 'content-api.find',
|
|
},
|
|
{
|
|
method: 'GET',
|
|
path: '/files/:id',
|
|
handler: 'content-api.findOne',
|
|
},
|
|
{
|
|
method: 'DELETE',
|
|
path: '/files/:id',
|
|
handler: 'content-api.destroy',
|
|
},
|
|
],
|
|
};
|