Open veej opened 3 years ago
In the default apiPrelude we're hardcoding the models path as ./model-ts https://github.com/buildo/metarpheus-io-ts/blob/8d7af9ba307d87e785cc9cd542e16b2a8080978b/src/index.ts#L463 In case we want to generate the model file in a different path (e.g. ./model), we have to overwrite the whole prelude.
./model-ts
./model
Should we pass the modelPath to getRoutes and use it to generate the default apiPrelude?
getRoutes
In the default apiPrelude we're hardcoding the models path as
./model-ts
https://github.com/buildo/metarpheus-io-ts/blob/8d7af9ba307d87e785cc9cd542e16b2a8080978b/src/index.ts#L463 In case we want to generate the model file in a different path (e.g../model
), we have to overwrite the whole prelude.Should we pass the modelPath to
getRoutes
and use it to generate the default apiPrelude?