mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
b590ce1b95
closes https://github.com/TryGhost/Team/issues/411 - adds "Create snippet" icon to the editor toolbar - uses the same link input component design for specifying snippet titles - snippets are loaded in the background when the editor is accessed - snippets are listed at the bottom of the card menus of the + and / menus - clicking a snippet inserts the snippet's contents in place of the current blank section
7 lines
178 B
JavaScript
7 lines
178 B
JavaScript
export default function mockSnippets(server) {
|
|
server.get('/snippets/');
|
|
server.post('/snippets/');
|
|
server.put('/snippets/:id/');
|
|
server.del('/snippets/:id/');
|
|
}
|