Added database, orm, auth modules
added db migrations for users and initial data added first controllers added auth middleware added rest routes and controller stub ...
This commit is contained in:
3
app/Controllers/Http/AuthController.ts
Normal file
3
app/Controllers/Http/AuthController.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
|
||||
|
||||
export default class AuthController {}
|
||||
17
app/Controllers/Http/EventsController.ts
Normal file
17
app/Controllers/Http/EventsController.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
|
||||
|
||||
export default class EventsController {
|
||||
public async index({}: HttpContextContract) {}
|
||||
|
||||
public async create({}: HttpContextContract) {}
|
||||
|
||||
public async store({}: HttpContextContract) {}
|
||||
|
||||
public async show({}: HttpContextContract) {}
|
||||
|
||||
public async edit({}: HttpContextContract) {}
|
||||
|
||||
public async update({}: HttpContextContract) {}
|
||||
|
||||
public async destroy({}: HttpContextContract) {}
|
||||
}
|
||||
9
app/Controllers/Http/HomeController.ts
Normal file
9
app/Controllers/Http/HomeController.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
|
||||
|
||||
export default class HomeController {
|
||||
|
||||
public async index({ inertia }: HttpContextContract) {
|
||||
|
||||
return inertia.render('Home')
|
||||
}
|
||||
}
|
||||
17
app/Controllers/Http/UsersController.ts
Normal file
17
app/Controllers/Http/UsersController.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
|
||||
|
||||
export default class UsersController {
|
||||
public async index({}: HttpContextContract) {}
|
||||
|
||||
public async create({}: HttpContextContract) {}
|
||||
|
||||
public async store({}: HttpContextContract) {}
|
||||
|
||||
public async show({}: HttpContextContract) {}
|
||||
|
||||
public async edit({}: HttpContextContract) {}
|
||||
|
||||
public async update({}: HttpContextContract) {}
|
||||
|
||||
public async destroy({}: HttpContextContract) {}
|
||||
}
|
||||
Reference in New Issue
Block a user