Reorganize app workspaces and align Admin architecture

This commit is contained in:
Igor Martyniuk
2026-07-17 13:46:21 +00:00
parent ba691d3a0c
commit 0ba01cd111
183 changed files with 3745 additions and 4354 deletions
+54
View File
@@ -0,0 +1,54 @@
// for AdonisJS v6
import path from 'node:path'
import url from 'node:url'
// ---
export default {
// path: __dirname + "/../", for AdonisJS v5
path: path.dirname(url.fileURLToPath(import.meta.url)) + '/../', // for AdonisJS v6
title: 'Foo', // use info instead
version: '1.0.0', // use info instead
description: '', // use info instead
tagIndex: 2,
productionEnv: 'production', // optional
info: {
title: 'Crux',
version: '1.0.0',
description: '',
},
snakeCase: true,
debug: true, // set to true, to get some useful debug output
ignore: [
'/swagger',
'/docs',
'/auth*',
'/admin*',
'/permission*',
'/role*',
'/makeModule*',
'/testing*',
],
preferredPutPatch: 'PUT', // if PUT/PATCH are provided for the same route, prefer PUT
common: {
parameters: {}, // OpenAPI conform parameters that are commonly used
headers: {}, // OpenAPI conform headers that are commonly used
},
securitySchemes: {}, // optional
authMiddlewares: ['auth', 'auth:api'], // optional
defaultSecurityScheme: 'BearerAuth', // optional
persistAuthorization: true, // persist authorization between reloads on the swagger page
showFullPath: false, // the path displayed after endpoint summary,
// modulesPath: {
// models: ['models', 'api/models'],
// interfaces: ['interfaces', 'api/interfaces'],
// validators: ['validators', 'api/validators'],
// types: ['types', 'api/types'],
// },
modulesPath: {
models: ['api/models'],
interfaces: ['api/interfaces'],
validators: ['api/validators'],
types: ['api/types'],
},
}