import router from '@adonisjs/core/services/router';
import InformationsController from '#controllers/informations_controller';
import ImagesController from '#controllers/admin/images_controller';
import MusicController from '#controllers/music_controller';
import ProjectsController from '#controllers/projects_controller';
import CategoriesController from '#controllers/categories_controller';
import TagsController from '#controllers/tags_controller';
import TrainingsController from '#controllers/trainings_controller';
import AuthController from '#controllers/admin/auth_controller';
import DashboardController from '#controllers/admin/dashboard_controller';
import InformationController from '#controllers/admin/information_controller';
import AdminProjectsController from '#controllers/admin/projects_controller';
import AdminMusicController from '#controllers/admin/music_controller';
import AdminCategoriesController from '#controllers/admin/categories_controller';
import AdminTagsController from '#controllers/admin/tags_controller';
import AdminTrainingsController from '#controllers/admin/trainings_controller';
import AdminExperiencesController from '#controllers/admin/experiences_controller';
import ExperiencesController from '#controllers/experiences_controller';
import BackupController from '#controllers/admin/backup_controller';
import { middleware } from '#start/kernel';
router.on('/').render('pages/home');
router
    .group(() => {
    router.get('/information', [InformationsController, 'show']);
    router.get('/music', [MusicController, 'index']);
    router.get('/projects', [ProjectsController, 'index']);
    router.get('/projects/:id', [ProjectsController, 'show']);
    router.get('/categories', [CategoriesController, 'index']);
    router.get('/tags', [TagsController, 'index']);
    router.get('/trainings', [TrainingsController, 'index']);
    router.get('/experiences', [ExperiencesController, 'index']);
    router.get('/experiences/:id', [ExperiencesController, 'show']);
})
    .prefix('/api');
router
    .group(() => {
    router.get('/login', [AuthController, 'showLogin']).use(middleware.adminGuest());
    router.post('/login', [AuthController, 'login']).use(middleware.adminGuest());
    router.post('/logout', [AuthController, 'logout']).use(middleware.adminAuth());
    router.get('/', [DashboardController, 'index']).use(middleware.adminAuth());
    router.get('/information/edit', [InformationController, 'edit']).use(middleware.adminAuth());
    router.post('/information', [InformationController, 'update']).use(middleware.adminAuth());
    router.get('/projects', [AdminProjectsController, 'index']).use(middleware.adminAuth());
    router.get('/projects/create', [AdminProjectsController, 'create']).use(middleware.adminAuth());
    router.post('/projects', [AdminProjectsController, 'store']).use(middleware.adminAuth());
    router.get('/projects/:id/edit', [AdminProjectsController, 'edit']).use(middleware.adminAuth());
    router.post('/projects/:id', [AdminProjectsController, 'update']).use(middleware.adminAuth());
    router.post('/projects/:id/delete', [AdminProjectsController, 'destroy']).use(middleware.adminAuth());
    router.get('/music', [AdminMusicController, 'index']).use(middleware.adminAuth());
    router.get('/music/create', [AdminMusicController, 'create']).use(middleware.adminAuth());
    router.post('/music', [AdminMusicController, 'store']).use(middleware.adminAuth());
    router.get('/music/:id/edit', [AdminMusicController, 'edit']).use(middleware.adminAuth());
    router.post('/music/:id', [AdminMusicController, 'update']).use(middleware.adminAuth());
    router.post('/music/:id/delete', [AdminMusicController, 'destroy']).use(middleware.adminAuth());
    router.get('/categories', [AdminCategoriesController, 'index']).use(middleware.adminAuth());
    router.get('/categories/create', [AdminCategoriesController, 'create']).use(middleware.adminAuth());
    router.post('/categories', [AdminCategoriesController, 'store']).use(middleware.adminAuth());
    router.get('/categories/:id/edit', [AdminCategoriesController, 'edit']).use(middleware.adminAuth());
    router.post('/categories/:id', [AdminCategoriesController, 'update']).use(middleware.adminAuth());
    router.post('/categories/:id/delete', [AdminCategoriesController, 'destroy']).use(middleware.adminAuth());
    router.get('/tags', [AdminTagsController, 'index']).use(middleware.adminAuth());
    router.get('/tags/create', [AdminTagsController, 'create']).use(middleware.adminAuth());
    router.post('/tags', [AdminTagsController, 'store']).use(middleware.adminAuth());
    router.get('/tags/:id/edit', [AdminTagsController, 'edit']).use(middleware.adminAuth());
    router.post('/tags/:id', [AdminTagsController, 'update']).use(middleware.adminAuth());
    router.post('/tags/:id/delete', [AdminTagsController, 'destroy']).use(middleware.adminAuth());
    router.get('/trainings', [AdminTrainingsController, 'index']).use(middleware.adminAuth());
    router.get('/trainings/create', [AdminTrainingsController, 'create']).use(middleware.adminAuth());
    router.post('/trainings', [AdminTrainingsController, 'store']).use(middleware.adminAuth());
    router.get('/trainings/:id/edit', [AdminTrainingsController, 'edit']).use(middleware.adminAuth());
    router.post('/trainings/:id', [AdminTrainingsController, 'update']).use(middleware.adminAuth());
    router.post('/trainings/:id/delete', [AdminTrainingsController, 'destroy']).use(middleware.adminAuth());
    router.get('/experiences', [AdminExperiencesController, 'index']).use(middleware.adminAuth());
    router.get('/experiences/create', [AdminExperiencesController, 'create']).use(middleware.adminAuth());
    router.post('/experiences', [AdminExperiencesController, 'store']).use(middleware.adminAuth());
    router.get('/experiences/:id/edit', [AdminExperiencesController, 'edit']).use(middleware.adminAuth());
    router.post('/experiences/:id', [AdminExperiencesController, 'update']).use(middleware.adminAuth());
    router.post('/experiences/:id/delete', [AdminExperiencesController, 'destroy']).use(middleware.adminAuth());
    router.get('/images', [ImagesController, 'index']).use(middleware.adminAuth());
    router.post('/images', [ImagesController, 'store']).use(middleware.adminAuth());
    router.delete('/images/:id', [ImagesController, 'destroy']).use(middleware.adminAuth());
    router.get('/backup', [BackupController, 'index']).use(middleware.adminAuth());
    router.get('/backup/export', [BackupController, 'export']).use(middleware.adminAuth());
    router.post('/backup/import', [BackupController, 'import']).use(middleware.adminAuth());
})
    .prefix('/admin');
//# sourceMappingURL=routes.js.map