created User-Model and Employee-Model
This commit is contained in:
@@ -38,4 +38,6 @@ Server.middleware.register([() => import('@ioc:Adonis/Core/BodyParser')])
|
||||
| Route.get('dashboard', 'UserController.dashboard').middleware('auth')
|
||||
|
|
||||
*/
|
||||
Server.middleware.registerNamed({})
|
||||
Server.middleware.registerNamed({
|
||||
auth: () => import('App/Middleware/Auth')
|
||||
})
|
||||
|
||||
@@ -20,6 +20,4 @@
|
||||
|
||||
import Route from '@ioc:Adonis/Core/Route'
|
||||
|
||||
Route.get('/', async () => {
|
||||
return { hello: 'world' }
|
||||
})
|
||||
Route.resource('employees', 'EmployeesController').except(['create', 'edit'])
|
||||
|
||||
Reference in New Issue
Block a user