digzom
AEAsh Elixir
•Created by digzom on 5/27/2023 in #support
Ash Api without Phoenix setup
Hey folks.
It's my first try on Ash Framework and I really liked the approach.
I'm trying to build a basic REST API without a mix phoenix setup:
- Receive requests through a controller
- Do something (a api call to fetch some data, in my case)
- Save the data
- Return the data for the client
I already figured out how to persist data with
ash_postgres
. But I'm having a hard time to understand how to create routes, because I don't want to setup a Pheonix App.
In the documentation's "Getting started" only shows how to forward the call of a phoenix app.
Is there some Ash helper to create routes, or even a separated phoenix package to help with this? Maybe the path is doing from scratch?6 replies