* feat: support to okapi * fix: fmt checks * chore: rocket-okapi-example: add required schemas * chore: rocket-okapi-example: add dto * chore: rocket-okapi-example: add custom error * chore: rocket-okapi-example: add api controllers * chore: rocket-okapi-example: add notes in Readme * chore: make rocket_okapi optional * refactor: delete rocket example from rocket_example * chore: rocket-okapi-example: add base files for okapi example * chore: rocket-okapi-example: add controllers and dto * chore: rocket-okapi-example: add docs
12 lines
371 B
TOML
12 lines
371 B
TOML
[default]
|
|
template_dir = "api/templates/"
|
|
|
|
[default.databases.sea_orm]
|
|
# Mysql
|
|
# make sure to enable "sqlx-mysql" feature in Cargo.toml, i.e default = ["sqlx-mysql"]
|
|
# url = "mysql://root:@localhost/rocket_example"
|
|
|
|
# Postgres
|
|
# make sure to enable "sqlx-postgres" feature in Cargo.toml, i.e default = ["sqlx-postgres"]
|
|
url = "postgres://user:pass@localhost:5432/rocket"
|