Skip to content

Commit

Permalink
Minor refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkBrines committed Nov 5, 2023
1 parent 42ba904 commit d2f3bd9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 92 deletions.
24 changes: 0 additions & 24 deletions resources/views/tutorials/step-end.edge

This file was deleted.

42 changes: 0 additions & 42 deletions resources/views/tutorials/step.edge

This file was deleted.

8 changes: 4 additions & 4 deletions resources/views/tutorials/tutorial.edge
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
@endsection

@section('content')
<section class="container">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/bootstrap/3.2.0/css/bootstrap.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/highlight.js/9.1.0/styles/github.min.css">
@entryPointStyles('tutorial')

<link rel="stylesheet" href="https://cdn.jsdelivr.net/bootstrap/3.2.0/css/bootstrap.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/highlight.js/9.1.0/styles/github.min.css">
@entryPointStyles('tutorial')
<section class="container">
<div id="doc">{{ tutorial.content }}</div>
</section>

Expand Down
44 changes: 22 additions & 22 deletions start/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,33 +80,33 @@ Route.group(() => {
// .middleware('auth')
// .as('dashboard')

// ----------------------------------------------
// Admin panel
// ----------------------------------------------
Route.group(() => {
Route.get('/', 'AdminController.index')
.as('adminPanel.index')
// // ----------------------------------------------
// // Admin panel
// // ----------------------------------------------
// Route.group(() => {
// Route.get('/', 'AdminController.index')
// .as('adminPanel.index')

Route.get('/:model', 'AdminModelController.index')
.as('adminPanel.model.index')
// Route.get('/:model', 'AdminModelController.index')
// .as('adminPanel.model.index')

Route.get('/:model/i/:id', 'AdminModelController.view')
.as('adminPanel.model.view')
// Route.get('/:model/i/:id', 'AdminModelController.view')
// .as('adminPanel.model.view')

Route.get('/:model/create', 'AdminModelController.create')
.as('adminPanel.model.create')
Route.post('/:model/create', 'AdminModelController.createProcess')
// Route.get('/:model/create', 'AdminModelController.create')
// .as('adminPanel.model.create')
// Route.post('/:model/create', 'AdminModelController.createProcess')

Route.get('/:model/i/:id/update', 'AdminModelController.update')
.as('adminPanel.model.update')
Route.post('/:model/i/:id/update', 'AdminModelController.updateProcess')
// Route.get('/:model/i/:id/update', 'AdminModelController.update')
// .as('adminPanel.model.update')
// Route.post('/:model/i/:id/update', 'AdminModelController.updateProcess')

Route.get('/:model/i/:id/delete', 'AdminModelController.delete')
.as('adminPanel.model.delete')
Route.post('/:model/i/:id/delete', 'AdminModelController.deleteProcess')
})
.middleware('auth')
.prefix('/admin-panel')
// Route.get('/:model/i/:id/delete', 'AdminModelController.delete')
// .as('adminPanel.model.delete')
// Route.post('/:model/i/:id/delete', 'AdminModelController.deleteProcess')
// })
// .middleware('auth')
// .prefix('/admin-panel')

// if (process.env.NODE_ENV == "development") {
// Route.get('/loginAsUid/:uid', async ({ params, auth, response, session }: HttpContextContract) => {
Expand Down

0 comments on commit d2f3bd9

Please sign in to comment.