Skip to content

Commit

Permalink
Deprecated AppsController and Marketplace routes
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkBrines committed Nov 14, 2024
1 parent f26bb4f commit a4d0f74
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
2 changes: 2 additions & 0 deletions app/Controllers/Http/AppsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
import App from '../../Models/App'
import { string } from '@ioc:Adonis/Core/Helpers'

// DEPRECATED - Use StoreController instead

export default class AppsController {
public async index({ view, params, request }: HttpContextContract) {
const query = request.qs()["query"]
Expand Down
36 changes: 19 additions & 17 deletions start/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,25 @@ Route.group(() => {
// Marketplace
// ----------------------------------------------

Route.group(() => {
Route.get('/', 'AppsController.index')
.as('apps')
Route.get('/cat/:category', 'AppsController.index')
Route.get('/product', 'AppsController.product')
Route.get('/create', 'AppsController.create')
Route.post('/createProcess', 'AppsController.createProcess')

Route.get('/app/:id', 'AppsController.show')
Route.get('/app/:id/asJson', 'AppsController.getAppJson')

if (process.env.NODE_ENV == "development") {
console.warn("Development route /apps/appinstalledemo was loaded");
Route.get('/appinstalldemo', 'AppsController.appinstalldemo')
}
}).prefix('/apps')
.middleware('silentAuth')
// DEPRECATED - Use StoreController instead

// Route.group(() => {
// Route.get('/', 'AppsController.index')
// .as('apps')
// Route.get('/cat/:category', 'AppsController.index')
// Route.get('/product', 'AppsController.product')
// Route.get('/create', 'AppsController.create')
// Route.post('/createProcess', 'AppsController.createProcess')

// Route.get('/app/:id', 'AppsController.show')
// Route.get('/app/:id/asJson', 'AppsController.getAppJson')

// if (process.env.NODE_ENV == "development") {
// console.warn("Development route /apps/appinstalledemo was loaded");
// Route.get('/appinstalldemo', 'AppsController.appinstalldemo')
// }
// }).prefix('/apps')
// .middleware('silentAuth')


/**
Expand Down

0 comments on commit a4d0f74

Please sign in to comment.