├── .env ├── .gitignore ├── README.md ├── bun.lockb ├── drizzle.config.ts ├── drizzle ├── 0000_lucky_venus.sql └── meta │ ├── 0000_snapshot.json │ └── _journal.json ├── env.example ├── package.json ├── src ├── database │ ├── database.ts │ ├── index.ts │ └── schema.ts ├── index.ts ├── middlewares │ ├── Auth.ts │ └── index.ts ├── modules │ ├── index.ts │ ├── notes │ │ ├── index.ts │ │ ├── notes.controller.ts │ │ ├── notes.dto.ts │ │ └── notes.service.ts │ └── tasks │ │ ├── index.ts │ │ ├── tasks.controller.ts │ │ ├── tasks.repository.ts │ │ └── tasks.service.ts ├── server.ts └── utils │ ├── BaseController.ts │ ├── ErrorMessages.ts │ ├── index.ts │ ├── logger.ts │ ├── registerControllers.ts │ └── routeMethods.ts └── tsconfig.json /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/.env -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/README.md -------------------------------------------------------------------------------- /bun.lockb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/bun.lockb -------------------------------------------------------------------------------- /drizzle.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/drizzle.config.ts -------------------------------------------------------------------------------- /drizzle/0000_lucky_venus.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/drizzle/0000_lucky_venus.sql -------------------------------------------------------------------------------- /drizzle/meta/0000_snapshot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/drizzle/meta/0000_snapshot.json -------------------------------------------------------------------------------- /drizzle/meta/_journal.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/drizzle/meta/_journal.json -------------------------------------------------------------------------------- /env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/env.example -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/package.json -------------------------------------------------------------------------------- /src/database/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/database/database.ts -------------------------------------------------------------------------------- /src/database/index.ts: -------------------------------------------------------------------------------- 1 | export { default as db } from './database'; 2 | -------------------------------------------------------------------------------- /src/database/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/database/schema.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/middlewares/Auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/middlewares/Auth.ts -------------------------------------------------------------------------------- /src/middlewares/index.ts: -------------------------------------------------------------------------------- 1 | export { default as AuthRoute } from './Auth'; 2 | -------------------------------------------------------------------------------- /src/modules/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/modules/index.ts -------------------------------------------------------------------------------- /src/modules/notes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/modules/notes/index.ts -------------------------------------------------------------------------------- /src/modules/notes/notes.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/modules/notes/notes.controller.ts -------------------------------------------------------------------------------- /src/modules/notes/notes.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/modules/notes/notes.dto.ts -------------------------------------------------------------------------------- /src/modules/notes/notes.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/modules/notes/notes.service.ts -------------------------------------------------------------------------------- /src/modules/tasks/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/modules/tasks/index.ts -------------------------------------------------------------------------------- /src/modules/tasks/tasks.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/modules/tasks/tasks.controller.ts -------------------------------------------------------------------------------- /src/modules/tasks/tasks.repository.ts: -------------------------------------------------------------------------------- 1 | // drop your own database access logic here 2 | -------------------------------------------------------------------------------- /src/modules/tasks/tasks.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/modules/tasks/tasks.service.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/server.ts -------------------------------------------------------------------------------- /src/utils/BaseController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/utils/BaseController.ts -------------------------------------------------------------------------------- /src/utils/ErrorMessages.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/utils/ErrorMessages.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /src/utils/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/utils/logger.ts -------------------------------------------------------------------------------- /src/utils/registerControllers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/utils/registerControllers.ts -------------------------------------------------------------------------------- /src/utils/routeMethods.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/src/utils/routeMethods.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OthmanAmoudi/Elysiajs-api-controllers/HEAD/tsconfig.json --------------------------------------------------------------------------------