This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
/** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */ | |
const Model = use('Model') | |
class ExampleModel extends Model { | |
/** | |
* Add traits | |
*/ | |
static boot () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
/** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */ | |
const Model = use('Model') | |
class ExampleModel extends Model { | |
/** | |
* Add traits | |
*/ | |
static boot () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const httpProxy = require('http-proxy'); | |
const Logger = use('Logger'); | |
class ProxyController { | |
/** | |
* Proxy any request to the targeted PROXY_HOST | |
* |