Files
artdanj-api/server.ts
2020-12-16 15:54:29 +01:00

19 lines
591 B
TypeScript

/*
|--------------------------------------------------------------------------
| AdonisJs Server
|--------------------------------------------------------------------------
|
| The contents in this file is meant to bootstrap the AdonisJs application
| and start the HTTP server to accept incoming connections. You must avoid
| making this file dirty and instead make use of `lifecycle hooks` provided
| by AdonisJs service providers for custom code.
|
*/
import 'reflect-metadata'
import { Ignitor } from '@adonisjs/core/build/standalone'
new Ignitor(__dirname)
.httpServer()
.start()