mirror of
https://github.com/ilyakooo0/roboservant.git
synced 2024-09-11 08:05:47 +03:00
14 lines
296 B
Bash
Executable File
14 lines
296 B
Bash
Executable File
n=$1
|
|
|
|
cat prelude
|
|
echo -n "type Api = \"route1\" :> ReqBody '[JSON] Input :> Post '[JSON] Output"
|
|
for i in $(seq 2 $n); do
|
|
echo " :<|> \"route${i}\" :> ReqBody '[JSON] Input :> Post '[JSON] Output"
|
|
done
|
|
|
|
echo -n "server = handler "
|
|
|
|
for i in $(seq 2 $n); do
|
|
echo -n ":<|> handler "
|
|
done
|