C
C#2y ago
V0FBU1VM

✅ Only add certain controllers?

Is there a way I can only add/map certain controllers based on if the application is in development or production? I was thinking of using some sort of attribute but don't know how?
2 Replies
cap5lut
cap5lut2y ago
u can use precompiler directives for this
#if DEBUG
// stuff that should only be in debug mode
#endif
#if DEBUG
// stuff that should only be in debug mode
#endif
V0FBU1VM
V0FBU1VMOP2y ago
@cap5lut Thanks mate
Want results from more Discord servers?
Add your server