mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 09:00:19 +00:00
33 lines
529 B
JavaScript
33 lines
529 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
module.exports = {
|
||
|
type: 'content-api',
|
||
|
routes: [
|
||
|
{
|
||
|
method: 'POST',
|
||
|
path: '/',
|
||
|
handler: 'upload.upload',
|
||
|
},
|
||
|
{
|
||
|
method: 'GET',
|
||
|
path: '/files/count',
|
||
|
handler: 'upload.count',
|
||
|
},
|
||
|
{
|
||
|
method: 'GET',
|
||
|
path: '/files',
|
||
|
handler: 'upload.find',
|
||
|
},
|
||
|
{
|
||
|
method: 'GET',
|
||
|
path: '/files/:id',
|
||
|
handler: 'upload.findOne',
|
||
|
},
|
||
|
{
|
||
|
method: 'DELETE',
|
||
|
path: '/files/:id',
|
||
|
handler: 'upload.destroy',
|
||
|
},
|
||
|
],
|
||
|
};
|