1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-17 03:24:23 +02:00

Version 1.2.0 Introducing a Basic Content Editor

This commit is contained in:
Sebastian
2018-06-25 18:04:32 +02:00
parent 9286cfd884
commit cfc8128161
34 changed files with 560 additions and 100 deletions

View File

@@ -1,5 +1,10 @@
<?php
use Typemill\Controllers\SettingsController;
use Typemill\Controllers\ContentController;
use Typemill\Middleware\RedirectIfUnauthenticated;
use Typemill\Middleware\RedirectIfAuthenticated;
use Typemill\Middleware\RedirectIfNoAdmin;
$app->get('/api/v1/themes', SettingsController::class . ':getThemeSettings')->setName('api.themes');
$app->get('/api/v1/themes', SettingsController::class . ':getThemeSettings')->setName('api.themes');
$app->put('/api/v1/article', ContentController::class . ':updateArticle')->setName('api.article.update')->add(new RedirectIfUnauthenticated($container['router'], $container['flash']));