209 похожих чатов

Export function SupperPupperController(prefix?: string): ClassDecorator { return Controller(`super/pupper/${prefix ||

""}`);
}

9 ответов

4 просмотра
Кирилл-Сабитов Автор вопроса

Вот так @smyatana

Кирилл Сабитов
Вот так @smyatana

Я в плане, что маршруты админа и пользователя могут содержать разные методы, либо пользователь создаёт запись с одними данными, а админ для этого пользователя с другими, в таком случае если делать в одном контроллере, то это нарушает принцип единственной ответственности. Как быть с этим? В папке Post создавать два контроллера PostController и AdminPostController?

Почему? Или ты имеешь ввиду разбивать на микросервисы?

Maksim Drazdou
Почему? Или ты имеешь ввиду разбивать на микросерв...

Ну я не знаю суть вашего приложения, но условно если это платформа типа форума/магазина и тд Лично я вижу клиентское приложение и приложение админа, который условно будем им управлять Наполнять товарами/модерировать комменты и тд

А есть смысл сразу разбивать на микросервисы или для такого случая отдельные приложения эффективнее?

Maksim Drazdou
А есть смысл сразу разбивать на микросервисы или д...

Ну микросервисы это по сути и есть отдельные приложения, просто тут надо думать на перед есть ли в этом смысл и как и зачем они будут между собой взаимодействовать

Похожие вопросы

Обсуждают сегодня

At which price point will BCH, an ASIC mined coin, be succeptible to reorg attacks because of low hashrate? $10? $1? $0.1? $0.01?
Kishniev
18
Is Kadena onto something special? No one really knows. Good luck!
Bright Uncle Stephen EqualBet
40
Hello VIC team, I had previously used the “wallet.tomochain.com” with a ledger connection. Unfortunately, the site is no longer accessible and the ledger account is not visibl...
carpe noctem
7
isn't utxo commitements pretty close though if someone wanted to get it over the finish line? my understanding is that most of the ground work was already down by verde
Luke High - Rabbi Of Bcash High Rabbi Of Bcash
23
Reading online, I found monero has an unlimited supply and that block reward is now 0.6 XMR. Is there a sort of halving even in Monero or the situation is going to stay like t...
Vincenzo Tamborino F
7
I arrived here after a Chico Crypto show highlighted the project & the Team - the fact that the Team had a long history of successfully working with household names gave me e...
Banter is Bullish
5
is the buyback program live and at what prices are the purchases fixed? excuse me for the bland PA question, sophisticated defi people keke
Imnothere
20
who wants bonding on kadena like tao does, ruthless voting of where emissions go? vote here, sounds great to me, let the market decide.
Ted Fulton
6
Quick question. Crypto was designed to be a trustless system, right? So no one had to trust another human, you just trust the code. That was my interpretation of the BItty w...
clay
5
But 0.6 XMR are newly created or they just come from transaction fees?
Vincenzo Tamborino F
7
Карта сайта